Heroku: No Rakefile found (but works locally)

后端 未结 2 1807
南方客
南方客 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条回答
  •  Happy的楠姐
    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

提交回复
热议问题