我创建了一个python2.7 / django(1.4.1)应用程序,我想在heroku上部署
该项目已经在git上,所以我做了以下几点。
1>创建heroku --stack cedar
2 - ; created require.txt:仅包含 Django的== 1.4.1
3> create Procfile:contains 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问题:Deploying existing Django app on Heroku 关于目录结构的讨论,从那时起Django目录结构发生了变化,那么我做错了什么?
这里我的目录结构如下:
MyApp
|
MyApp
|-- __init__
|-- settings.py
|-- urls.py
my_module
|-- __init__
|-- views.py
|-- static
|-- templates
manage.py
requirement.txt
Procfile
我正在使用Fedora,所以不得不使用rubygem来安装herokutoolbelt
Heroku Version : heroku-gem/2.33.5 (x86_64-linux) ruby/1.9.3
答案 0 :(得分:0)
其requirements.txt
而非requirement.txt