######<問題>
表題の通りDjangoをherokuにデプロイすることができません。
使用PCはmacです。
何か方法があれば教えていただけないでしょうか?
※Djangoのデプロイは下記の方法で実施しました。
https://qiita.com/okoppe8/items/76cdb202eb15aab566d1
#####<エラー内容>
$git push heroku master Enumerating objects: 55, done. Counting objects: 100% (55/55), done. Delta compression using up to 4 threads Compressing objects: 100% (48/48), done. Writing objects: 100% (55/55), 27.08 KiB | 3.38 MiB/s, done. Total 55 (delta 10), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! Requested runtime (Python-3.7.1) is not available for this stack (heroku-18). remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to [appname]. remote: To https://git.heroku.com/vgrestaurant.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/[appname].git'
######<試した内容>
①pythonを3.7.2にupdateし、runtime.txtをPython-3.7.2に変更。
②herokuのcashを以下方法で削除
https://help.heroku.com/18PI5RSY/how-do-i-clear-the-build-cache
③herokuアプリを再作成
$heroku apps:destroy --app [appname] --confirm [appname]
④requirements.txtを削除し、再作成
$pip freeze > requirements.txt
最初にruntime.txtにPython-3.7.1と記載してしまったため
上記内容を試してみたのですが、エラーが変わりません。
どなたか対応方法をお教えいただけませんでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。