Rails systemd unit file

適用於Capistrano部屬的CentOS 7

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Rails Puma Server
Documentation=
After=network.target
 
[Service]
Type=forking
User={使用者}
Group=nginx
WorkingDirectory=/home/{使用者}/app/current/
PIDFile=/home/{使用者}/app/shared/tmp/pids/puma.pid
ExecStart=/usr/local/bin/bundle exec puma -C config/puma.rb
ExecReload=/bin/kill -SIGUSR2 $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
 
[Install]
WantedBy=multi-user.target

留言

粗體斜體刪除線連結引用圖片程式碼

注意:您的電子信箱將不會被公開,且網站連結不會被搜尋引擎採計