【发布时间】:2013-02-07 06:24:26
【问题描述】:
我在 heroku 上创建了一个应用程序并推送了我的代码(在 git init 创建 git repo 之后)。
我的app 文件夹包含一个requirements.txt,我错误地将matplotlib 放在numpy 之前。 (实际上需要numpy 来安装matpplotlib,所以应该在它之前)。
当我推送到 heroku master,时,编译失败并显示错误消息“需要 numpy 来安装 matplotlib”。
所以我更正了requirements.txt 中的项目顺序,并使用git add、git commit 等提交了它。
然后我尝试使用git push heroku master 再次推送代码。
但它失败并显示相同的错误消息
这里是requirements.txt
Django==1.4.3
South==0.7.6
distribute==0.6.28
dj-database-url==0.2.1
django-registration==0.8
numpy==1.6.2
matplotlib==1.2.0
psycopg2==2.4.6
python-memcached==1.48
wsgiref==0.1.2
simplejson==3.0.7
然后我尝试使用
查找状态git status 它产生了
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# nothing to commit (working directory clean)
我曾经将我的代码添加到 Github。
我认为origin/master 与此有关。我错了吗?
如何在 heroku 上找到我的提交状态?
我的应用有一个名称为git@heroku.com:myapp.git。
【问题讨论】: