Skip to content

Instantly share code, notes, and snippets.

@yrgoldteeth
Last active December 12, 2023 10:25
Show Gist options
  • Save yrgoldteeth/eae7e4771605fa9ab06821dd528578e0 to your computer and use it in GitHub Desktop.
Save yrgoldteeth/eae7e4771605fa9ab06821dd528578e0 to your computer and use it in GitHub Desktop.
[Unit]
Description=Puma Rails Server
After=network.target
[Service]
Type=simple
User=deployer
WorkingDirectory=/path/to/rails-app
ExecStart=/usr/local/bin/chruby-exec ruby-2.4.1 -- bundle exec puma -C /path/to/rails-app/shared/config/puma.rb
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target
@simptive
Copy link

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment