Skip to content

Instantly share code, notes, and snippets.

@damuz91
Created April 15, 2022 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damuz91/f54b361d0764c525e4ace3934b8c2f24 to your computer and use it in GitHub Desktop.
Save damuz91/f54b361d0764c525e4ace3934b8c2f24 to your computer and use it in GitHub Desktop.
My puma configuration file for AL2
[Unit]
Description=Puma
After=network.target
[Service]
Type=forking
User=ec2-user
Environment=RAILS_ENV=production
WorkingDirectory=/home/ec2-user/production/railapp/current
EnvironmentFile=/home/ec2-user/production/railapp/current/.env.production
ExecStart=/home/ec2-user/.rvm/wrappers/ruby-2.7.0/puma -C /home/ec2-user/production/railapp/current/config/puma/production.rb
ExecStop=/home/ec2-user/.rvm/wrappers/ruby-2.7.0/pumactl -F /home/ec2-user/production/railapp/current/config/puma/production.rb stop
ExecReload=/home/ec2-user/.rvm/wrappers/ruby-2.7.0/pumactl -F /home/ec2-user/production/railapp/current/config/puma/production.rb phased-restart
PIDFile=/home/ec2-user/production/railapp/current/puma.pid
Restart=no
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment