我正在使用自定义 procfile 在 cedar 堆栈上使用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 初始化控制台并加载我的应用程序环境?