Improve installation process

This commit is contained in:
magicfixin
2025-07-23 23:42:41 +02:00
committed by cryptogopher
parent e12369cea1
commit 5ffc6974f0
8 changed files with 115 additions and 44 deletions

16
bin/fixinme.service.dist Normal file
View 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