こんばんは。
いつもお世話になっております。
今回はdjangoを使ったアプリをherokuにデプロイする際に、
躓いてしまっておりますので質問させて頂きます。
requirements.txtは以下の通りです。
appdirs==1.4.3
dj-database-url==0.4.2
Django==1.10.6
gunicorn==19.7.1
packaging==16.8
psycopg2==2.7.1
pyparsing==2.2.0
six==1.10.0
whitenoise==3.3.0
またruntime.txtは、
python-3.6.1
です。(使用しているpythonは3.6.0)
Procfileは、
web: gunicorn アプリ名.wsgi
で記述しています。
エラーの変遷をご覧下さい。
$ git push heroku master Counting objects: 8706, done. Delta compression using up to 4 threads. Compressing objects: 100% (7723/7723), done. Writing objects: 100% (8706/8706), 13.87 MiB | 305.00 KiB/s, done. Total 8706 (delta 2289), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. remote: See https://devcenter.heroku.com/articles/buildpacks remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to tobedol. remote: To https://git.heroku.com/tobedol.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/tobedol.git'
上記のようなエラーが出たため、
heroku buildpacks:set heroku/python
を入力した後に再度pushしたところ、
$ git push heroku master Counting objects: 8706, done. Delta compression using up to 4 threads. Compressing objects: 100% (7723/7723), done. Writing objects: 100% (8706/8706), 13.87 MiB | 283.00 KiB/s, done. Total 8706 (delta 2288), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz bu ildpack remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to tobedol. remote: To https://git.heroku.com/tobedol.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/tobedol.git'
となり、ここで力尽きました。。。
heroku側が提供しているビルドパック?がこのアプリとは合っていないみたいな感じでしょうか。。
Logsで内容を確認しようにも、
短すぎてよく分からない状態です。。
どなたかご意見、ご指導賜れれば幸いでございます。
何卒宜しくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/04/07 09:09