コマンドについて
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`