Heroku rails console does not start any more

后端 未结 5 616
北海茫月
北海茫月 2021-02-05 06:36

I have an issue with running the rails console at heroku (cedar-stack). Each of the following commands heroku run console, heroku run rails console, heroku run bundle exec rails

5条回答
  •  渐次进展
    2021-02-05 06:48

    For some reason you need to explicitly define the console process in the Procfile:

    # Procfile
    
    web: script/rails server -p $PORT
    console: script/rails console
    

    This blog post has more details: http://platypus.belighted.com/blog/2013/01/21/ruby-2-rails-4-heroku/

提交回复
热议问题