LoginSignup
1
0

More than 5 years have passed since last update.

python: deploy abortion on heroku

Posted at

エラー内容

-----> Python app detected
 !     The latest version of Python 3 is python-3.6.4 (you are using python-3.6.3, which is unsupported).
 !     We recommend upgrading by specifying the latest version (python-3.6.4).
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing requirements with latest Pipenv…
       Your Pipfile.lock (c8a67b) is out of date. Expected: (cb4136).
       Aborting deploy.
 !     Push rejected, failed to compile Python app.
 !     Push failed

仮説1

バージョン管理か正常に同期できていないのではないか。ローカルサーバーとデプロイ先のデータが一致していないのでは。

解決策

こちらよりpipenv updateを実行。

Screen Shot 2018-02-03 at 12.06.45 AM.png

その後のコメントにも書いてある通りこれはvirtualenvの方からファイルを取ってくるだけなのでpipenv install --ignore-pipfilegit add .git commit -m "..."を実行。無事にデプロイできるように。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0