There was an error while loading. Please reload this page.
PythonアプリケーションをHerokuへプッシュするときは、Python 2.7.4がデフォルトで使用されます :
-----> No runtime.txt provided; assuming python-2.7.4. -----> Preparing Python runtime (python-2.7.4) -----> Installing Distribute (0.6.36) -----> Installing Pip (1.3.1) -----> Installing dependencies using Pip (1.3.1)
アプリケーションを実行するために使われるPythonは、任意のバージョンを指定することができます。この機能はruntime.txtファイルの存在によって利用可能になります。
runtime.txt
:::term $ cat runtime.txt python-3.3.2
コミットして、Herokuへプッシュする際に、Python 3.3.2が検出されたことを確認できるでしょう :
-----> Heroku receiving push -----> Python app detected -----> Preparing Python runtime (python-3.3.2) -----> Installing Distribute (0.6.36) -----> Installing Pip (1.3.1) -----> Installing dependencies using Pip (1.3.1) ...
サポートされている実行系の中には、以下が含まれています :
サポートされていない実行系も同様に指定することができます(2.4.4-3.3.2)。しかし、私たちはPython 2.7.4 と 3.3.2の使用のみを推奨し、サポートします。
もしあなたが、もともとのビルドから違うPythonの実行系を指定した場合、アプリケーションのビルドキャッシュは破棄されます。