我正在使用自定义procfile在雪松堆栈上使用multi-buildpack部署到heroku:
web: bundle exec unicorn -p $PORT -E $RACK_ENV -c ./config/unicorn.rb
worker: bundle exec sidekiq -e production -C config/sidekiq.yml
console: bundle exec irb -r ./console
当我使用heroku run console
启动我的控制台时,我得到LoadError: cannot load such file -- ./console
和处女irb会话。
如何使用rails和我的应用程序环境加载初始化控制台?
答案 0 :(得分:0)
因此运行irb
显然是错误的。
我需要的是console: bundle exec rails console