Deploy Geddy to Heroku

谁都会走 提交于 2020-01-15 06:24:14

问题


I'm trying to deploy a simple Geddyjs (node.js) app to Heroku.

When I make a push a recive that error:

git push heroku master

Heroku receiving push
Heroku push rejected, no Cedar-supported app detected

What I have to do to that heroku detect the nodejs app?


回答1:


couple of things did you do this for cedar you need to explicitly say this (I am sure you have done this but here for completeness)

heroku create --stack cedar

ensure that your package.json is at the root

heroku have a good article on this

You should now be able to

git push heroku master




回答2:


Have you added Procfile and package.json to your local git repo. and committed them?

I had created them but forgot to add & commit them so when pushed these files weren't uploaded hence Heroku didn't know the type of app.

Adding, committing & re-pushing fixed this.

Obvious when you know:-)



来源:https://stackoverflow.com/questions/10196563/deploy-geddy-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!