diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-08 04:04:27 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-08 04:04:27 +0200 |
| commit | dab2e3571a3afc33795fa54fef57f10243522f90 (patch) | |
| tree | 45185c425033f44c333d66291b5eeb5420d86e49 /conf/mastodon-web.service | |
| download | mastodon_ynh-dab2e3571a3afc33795fa54fef57f10243522f90.tar.gz mastodon_ynh-dab2e3571a3afc33795fa54fef57f10243522f90.tar.bz2 mastodon_ynh-dab2e3571a3afc33795fa54fef57f10243522f90.zip | |
Initial commit
Diffstat (limited to 'conf/mastodon-web.service')
| -rw-r--r-- | conf/mastodon-web.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/mastodon-web.service b/conf/mastodon-web.service new file mode 100644 index 0000000..9f1d710 --- /dev/null +++ b/conf/mastodon-web.service @@ -0,0 +1,16 @@ +[Unit] + Description=mastodon-web + After=network.target + +[Service] + Type=simple + User=mastodon + WorkingDirectory=/opt/mastodon/live + Environment="RAILS_ENV=production" + Environment="PORT=3000" + ExecStart=/opt/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb + TimeoutSec=15 + Restart=always + +[Install] + WantedBy=multi-user.target
\ No newline at end of file |
