diff options
Diffstat (limited to 'mastodon-web.service')
-rw-r--r-- | mastodon-web.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mastodon-web.service b/mastodon-web.service new file mode 100644 index 000000000000..fc545686e265 --- /dev/null +++ b/mastodon-web.service @@ -0,0 +1,16 @@ +[Unit] +Description=mastodon-web +After=network.target + +[Service] +Type=simple +User=mastodon +WorkingDirectory=/home/mastodon/live +Environment="RAILS_ENV=production" +Environment="PORT=3000" +ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb +TimeoutSec=15 +Restart=always + +[Install] +WantedBy=multi-user.target |