forked from fixin.me/fixin.me
17 lines
344 B
Plaintext
17 lines
344 B
Plaintext
[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
|