0

カスタム 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 とアプリケーション環境をロードしてコンソールを初期化するにはどうすればよいですか?

4

1 に答える 1

0

したがって、実行することirbは明らかに間違っています。私が必要としていたのはconsole: bundle exec rails console

于 2014-11-14T19:43:28.850 に答える