当我运行git heroku push master时出现致命错误

时间:2019-03-11 04:11:11

标签: git heroku fatal-error

我已经运行了以下代码,一切顺利:

this.geo.collection('locations').within(center, 100.0, 'geo');

但是当我运行这段代码时:

git init
git add .
git commit —m 'name'
heroku create

我收到此错误:

git push heroku master

2 个答案:

答案 0 :(得分:0)

也许是illustrated here,在推送之前您还需要一个命令:

cd /path/to/repo
heroku git:remote -a yourapp

答案 1 :(得分:0)

确保在 git push heroku master 之前做“heroku create”