LoginSignup
4
3

More than 5 years have passed since last update.

shoryukenを起動するときに、productionモード起動させる

Posted at
cd /path_to/RailsProject/
RAILS_ENV=production bundle exec shoryuken -d -R -C ./config/shoryuken.yml -L ./log/shoryuken.log -P ./log/shoryuken.pid

RAILS_ENV=production
をスクリプトの前で渡してあげる。

何故か

bundle exec shoryuken -d -R -C ./config/shoryuken.yml -L ./log/shoryuken.log -P ./log/shoryuken.pid RAILS_ENV=production

で起動しようとしたときには、devlopmentモードで起動してしまって、気づくのに時間がかかった。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3