[Unit] Description=Puma HTTP Server After=network.target [Service] Type=simple User=root WorkingDirectory=/opt/rails Environment=RAILS_ENV=production ExecStart=/usr/local/rvm/bin/rvm-exec 2.2.3 bundle exec puma -b tcp://0.0.0.0 -e production -p 80 TimeoutSec=300 Restart=always [Install] WantedBy=multi-user.target # systemctl enable puma.service # systemctl start puma.service # systemctl status pum