所以我尝试将我的节点应用程序推送到heroku,但我一直收到这个错误:
! Heroku push rejected, no Cedar-supported app detected
To git@heroku.com:*************.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@***************.git'正如本文推荐的那样,我用heroku create --stack cedar创建了这个应用程序:Deploy Geddy to Heroku,但遗憾的是,这对我没有什么好处。
更新:我的package.json
{
"name": "site",
"version": "0.0.1",
"dependencies": {
"express": "3.x",
"jade": ">= 0.0.1",
"coffee-script": "~1.4.0",
"node-dev": "~0.2.9",
"connect-flash": "~0.1.0",
"connect-assets": "~2.3.3",
"everyauth": "~0.2.34",
"mongoose": "~3.5.3",
"mongodb": "~1.2.7",
"crypto": "0.0.3",
"moment": "~1.7.2"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}发布于 2013-07-23 16:28:37
我在一个节点应用程序中也遇到了这个问题,只是绕过了它。
package.json是问题所在,添加后,我使用了以下步骤:
git add package.json
git commit -m "Added package.json"
git push origin master
git push heroku master这似乎为我做了这个把戏。希望能有所帮助。
发布于 2013-01-08 19:19:21
一些需要检查的东西。
$ git commit -m "added package.json"
https://stackoverflow.com/questions/14209604
复制相似问题