Heroku: No Rakefile found (but works locally)

后端 未结 2 1793
南方客
南方客 2021-01-02 04:27

I cloned one of my own apps using Rails 3.1.3, created an app on Heroku on stack cedar, pushed the to Heroku, and then tried to run

heroku run rake db:migrate

相关标签:
2条回答
  • 2021-01-02 04:41

    So i had my staging branch already clone and ready for deployment

    I added a remote for heroku app heroku git:remote -a heroku-webapp-name-here

    Then i was trying to do something like this: (and wasnt working) git push heroku staging

    Finally running this worked liked a charm: git push heroku staging:master

    The problem is that if you look in the heroku dashboard you will see that the heroku app is not ruby

    0 讨论(0)
  • 2021-01-02 05:01

    You have to push to the master branch. From looking at the comments above it looks like you are not doing this.

    Therefore, assuming you're developing your application in the master branch, you can deploy with a simple:

    git push heroku master
    

    If you're not developing on master deploy with:

    git push heroku your_branch_name:master
    

    replacing your_branch_name with the name of the branch you're using.

    0 讨论(0)
提交回复
热议问题