Skip to content

Instantly share code, notes, and snippets.

@todashuta
Created June 29, 2025 15:04
Show Gist options
  • Save todashuta/a017818ab7ac1cb06db5187592edaeea to your computer and use it in GitHub Desktop.
Save todashuta/a017818ab7ac1cb06db5187592edaeea to your computer and use it in GitHub Desktop.
/etc/systemd/system/redmine-puma.service
[Unit]
Description=Redmine Puma Server
After=network.target
[Service]
Type=simple
User=foo
WorkingDirectory=/home/foo/redmine
Environment=RAILS_RELATIVE_URL_ROOT=/redmine
ExecStart=/usr/bin/bundle exec puma -b tcp://127.0.0.1:3000 -e production -w 3 --preload
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment