python2.7 / django(1.4.1)アプリケーションを作成しました。これをherokuにデプロイしたいと思います。
プロジェクトはすでにgitにあるので、私は次のことを行いました。
1> heroku--stackcedarを作成します
2>作成されたrequirement.txt:Django==1.4.1のみが含まれています
3> Procfileの作成:Webが含まれています:python manage.py runserver 0.0.0.0:$ PORT --noreload
4> git push heroku master
これは次のエラーをスローします
Counting objects: 90, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (84/84), done.
Writing objects: 100% (90/90), 154.73 KiB, done.
Total 90 (delta 23), reused 0 (delta 0)
! Heroku push rejected, no Cedar-supported app detected
To git@heroku.com:salty-tor-8958.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:salty-tor-8958.git'
以前に尋ねたSOの質問を確認しました:Herokuに既存のDjangoアプリをデプロイします 。ここでは、ディレクトリ構造について話しますが、それ以降、Djangoディレクトリ構造が変更されました。
ここで私のディレクトリ構造は次のようになります。
MyApp
|
MyApp
|-- __init__
|-- settings.py
|-- urls.py
my_module
|-- __init__
|-- views.py
|-- static
|-- templates
manage.py
requirement.txt
Procfile
私はFedoraに取り組んでいるので、herokutoolbeltをインストールするためにrubygemを使用する必要がありました
Heroku Version : heroku-gem/2.33.5 (x86_64-linux) ruby/1.9.3