【发布时间】:2015-10-06 00:48:51
【问题描述】:
这是我的Django 项目结构:
Testing
|_djangoApp
|_Testing
| |-- __init__.py
| |-- settings.py
| |-- urls.py
| |-- utils.py
| |-- wsgi.py
|
|_manage.py
|_Procfile
|_requirements.txt
|_README.md
我正在使用codeship.io 部署构建并将其推送到配置良好的Heroku。在heroku 上,我添加了一个名为“Testing”的应用程序。
我尝试使用codeship 在Heroku 上推送构建,但它给了我以下错误:
! Push rejected, no Cedar-supported app detected
To git@heroku.com:Testing.git
! [remote rejected] feca277a98c193c3b338ee1bd1406e6bc8f6b9e7 -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:Testing.git'
Procfile 的内容:
web: gunicorn Testing.wsgi
requirements.txt 的内容:
Django==1.3.1
docutils==0.8.1
psycopg2==2.4.2
Fabric==1.3.2
South==0.7.3
gunicorn==0.13.4
newrelic==1.0.5.156
django-celery==2.4.2
django-kombu==0.9.4
django-storages==1.1.3
boto==2.1.1
pylibmc==1.2.2
django-pylibmc-sasl==0.2.4
django-sorting==0.1
django-guardian==1.0.3
django-pagination==1.0.7
pyst2==0.4
django-annoying==0.7.6
django-tastypie==0.9.11
django-coverage==1.2.1
django-nose==0.1.3
nosexcover==1.0.7
django-debug-toolbar==0.8.5
Sphinx==1.1.2
django-cache-machine==0.6
django-twilio
我刚刚从Bitbucket 的私人仓库中克隆了我的项目,并添加了Procfile 以兼容Heroku。我试图遵循官方文档,但它只是从头开始关注。我在这里缺少什么?需要帮助!
【问题讨论】:
-
Procfile和requirements.txt是否都已提交到 git 并被推送? -
@YuvalAdam 是的!他们都在同一个目录中
-
嗯...我不知道什么是“codeship”,所以你应该对照官方文档检查你的部署过程,你可能会在那里找到答案。
-
@YuvalAdam 错误现已解决!但在部署构建后我得到:
Application Error
标签: python django git heroku heroku-toolbelt