glitch-soc/dist/mastodon-web.service
2019-07-10 03:26:51 -04:00

20 lines
397 B
Desktop File

[Unit]
Description=mastodon-web
After=network.target
PartOf=mastodon.target
[Service]
Type=simple
User=mastodon
WorkingDirectory=workdir
Environment="RAILS_ENV=production"
Environment="PORT=3000"
Environment="RUBYOPT=--jit"
ExecStart=homedir/.rbenv/shims/bundle exec puma -C config/puma.rb
ExecReload=/bin/kill -SIGUSR1 $MAINPID
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target