2016-11-01から1ヶ月間の記事一覧

unicorn のプロセスを終了させる

下記のコマンドを実行する。 kill -QUIT `cat tmp/pids/unicorn.pid` unicorn の親プロセスの ID は tmp/pids/unicorn.pid に保存されている。

親プロセスのプロセスIDを調べる

ps alx コマンドで表示される PPID が親のプロセスIDを示す。

unicorn の起動コマンド

bundle exec unicorn_rails -c config/unicorn.rb -E development -D -c: コンフィグファイルのパスを指定する。 -E: Rails の環境を指定する。この場合は development 環境となる。 -D: バックグラウンドで実行する。