forked from fixin.me/fixin.me
Improve installation process
This commit is contained in:
16
bin/fixinme.service.dist
Normal file
16
bin/fixinme.service.dist
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=fixin.me Rails Application
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=USER
|
||||
WorkingDirectory=PATH_TO_APP_DIRECTORY
|
||||
Environment="RAILS_ENV=production"
|
||||
Environment="RAILS_SERVE_STATIC_FILES=true"
|
||||
ExecStart=/bin/bash -lc 'bundle exec rails s -e production'
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user