“bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku

前端 未结 7 602
走了就别回头了
走了就别回头了 2020-11-28 07:14

While following the Rails 4 Beta version of Michael Hartl\'s Ruby on Rails Tutorial, my app fails to start on Heroku, but runs fine locally with

7条回答
  •  执念已碎
    2020-11-28 07:57

    I can confirm running rake rails:update:bin works, as said by @Ryan Taylor.

    I think I had this problem because I originally created this Rails app on Windows. Running the command above on Linux solved for me.

    Also, on changing from Windows to Linux for development, it is a good idea to delete Gemfile.lock file and run bundle install to generate it again without Windows specific gems listed there.

提交回复
热议问题