エラー内容
-----> 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
を実行。
その後のコメントにも書いてある通りこれはvirtualenv
の方からファイルを取ってくるだけなのでpipenv install --ignore-pipfile
、git add .
とgit commit -m "..."
を実行。無事にデプロイできるように。