summaryrefslogtreecommitdiffstats
path: root/config/albumen.service
diff options
context:
space:
mode:
Diffstat (limited to 'config/albumen.service')
-rw-r--r--config/albumen.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/albumen.service b/config/albumen.service
new file mode 100644
index 0000000..9fea12f
--- /dev/null
+++ b/config/albumen.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Albumen photo album (Puma)
+After=network.target
+
+[Service]
+Type=simple
+User=albumen
+Group=albumen
+WorkingDirectory=/opt/albumen
+Environment=RACK_ENV=production
+Environment=MEDIA_ROOT=/var/albumen
+Environment=CACHE_ROOT=/opt/albumen/cache/thumbs
+Environment=CONFIG_PATH=/opt/albumen/config.yml
+ExecStart=/usr/local/bin/bundle exec puma -C config/puma.rb
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target