我正在尝试按照 Michael Hartl 的 rails 教程添加身份验证步骤 7.29 ( http://ruby.railstutorial.org/chapters/sign-up#top )。我的项目在本地工作,但是当我尝试部署到 heroku 时,我得到“应用程序中发生错误,无法提供您的页面”。这些是我的日志错误:
heroku[api]: Starting process with command `bundle exec rake db:migrate` by connorleech@gmail.com
heroku[run.1285]: Awaiting client
heroku[run.1285]: Starting process with command `bundle exec rake db:migrate`
heroku[run.1285]: State changed from starting to up
heroku[run.1285]: Process exited with status 0
heroku[run.1285]: State changed from up to complete
heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=jason-shark-rails-project.herokuapp.com fwd="41.74.174.50" dyno= connect= service= status=503 bytes=
heroku[web.1]: State changed from crashed to starting
heroku[web.1]: Starting process with command `bin/rails server -p 10431 -e $RAILS_ENV`
app[web.1]: bash: bin/rails: No such file or directory
heroku[web.1]: Process exited with status 127
heroku[web.1]: State changed from starting to crashed
heroku[web.1]: Error R99 (Platform error) -> Failed to launch the dyno within 10 seconds
heroku[web.1]: Stopping process with SIGKILL
为了部署它,我似乎在我的项目中遗漏了一些东西..bash: bin/rails: No such file or directory
为什么我的应用程序可以在本地运行,但不能部署到 heroku?