App pushed to heroku still shows standard index page

前端 未结 2 353
死守一世寂寞
死守一世寂寞 2021-01-31 11:10

I went through the steps to install git and the heroku gem and successfully pushed my app to heroku. The problem is, it shows a standard \"You\'re Riding Ruby on Rails\" page ev

2条回答
  •  滥情空心
    2021-01-31 11:42

    I always use git commit -am "message". That prevented the above problem (which would have definitely happened), and I don't know of any reason not to use -am.

    EDIT: Also, be sure to use git add . when you have new files to add.

    So, my process is:

    git status (to see what has changed)
    git add . (if there are new files I want to add to repository)
    git commit -am "This is the comment"
    git push (to github)
    git push heroku (--app app-name if there is more than one app connected to this repository)
    

提交回复
热议问题