push rails app to heroku

后端 未结 8 1543
慢半拍i
慢半拍i 2020-12-15 05:54

I am trying to push a rails application to heroku.

When I get to the last step:

git push heroku master

It doesn\'t work and gives m

相关标签:
8条回答
  • 2020-12-15 06:53

    For me it was the presence of index.php that fixed it. Heroku seems to check for existence of index.php on pre-commit.

    0 讨论(0)
  • 2020-12-15 06:53

    I went through the Rails Tutorial and didn't have a single problem with Heroku (MAC OS X), but you do have to follow the directions.

    First, make sure you add/commit to Git. Then if you're in a -b (branch) you need to checkout into master, then merge the branch. If you've made changes to assets, you need to rake asset:precompile.

    If you're having a rack up issue, make sure you have this file => config.ru and the contents should look like this.

    # This file is used by Rack-based servers to start the application.
    
    require ::File.expand_path('../config/environment',  __FILE__)
    run SampleApp::Application
    

    I'm relatively new to Rails and Heroku, but as I mentioned above, if you're following the tutorial's directions, Heroku is a snap and the directions most definitely work. If not, I highly recommend getting started there!

    enter link description here

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