Ruby on Railsの標準のWebサーバ「puma」ですがCentOSなどのLinux上で本番稼働させる場合は、systemdにすることでプロセスを管理が簡単になります。 systemdの概要については拙著「systemd」をご参照ください。 🍣 pumaのsystemdの設定ファイルpuma用のsystemdの設定ファイルのサンプルです。 [Unit] Description=Puma HTTP Server After=network.target [Service] # Foreground process (do not use --daemon in ExecStart or config.rb) Type=simple # Preferably configure a non-privileged user # User= # Specify the path to y
![Rails pumaをsystemdで動かす](https://cdn-ak-scissors.b.st-hatena.com/image/square/c2ea7e72d0d7f3ba6c237909f321e67ffbdaa24e/height=288;version=1;width=512/https%3A%2F%2Fmorizyun.github.io%2Fimg%2Fog_image.png)