闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
365 B

  1. [Unit]
  2. Description=mastodon-web
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. User=mastodon
  7. WorkingDirectory=/home/mastodon/live
  8. Environment="RAILS_ENV=production"
  9. Environment="PORT=3000"
  10. ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
  11. ExecReload=/bin/kill -SIGUSR1 $MAINPID
  12. TimeoutSec=15
  13. Restart=always
  14. [Install]
  15. WantedBy=multi-user.target