LoginSignup
8
9

More than 5 years have passed since last update.

unicornの操作方法

Last updated at Posted at 2015-04-04

コマンドについて

unicornの起動


sudo -u git -H bundle exec unicorn_rails -c config/unicorn.rb -E production -D
オプション 意味
-c 設定ファイル
-E RAILS_ENV(デフォルトはdevelopment)
-D デーモンとして動作
-p ポートを指定する場合
--path ディレクトリ指定

unicornの停止


sudo kill -QUIT `cat tmp/pids/unicorn.pid`

unicornの再起動


sudo kill -HUP `cat tmp/pids/unicorn.pid`
8
9
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
8
9