Added deployment scripts
This commit is contained in:
29
deploy/systemd/staging@.service
Normal file
29
deploy/systemd/staging@.service
Normal file
@@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=Project Reshoot Staging %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/deploy/staging/projectreshoot
|
||||
WorkingDirectory=/home/deploy/staging
|
||||
User=deploy
|
||||
Group=deploy
|
||||
EnvironmentFile=/etc/env/staging.projectreshoot.env
|
||||
Environment="HOST=127.0.0.1"
|
||||
Environment="PORT=%i"
|
||||
Environment="TRUSTED_HOST=staging.projectreshoot.com"
|
||||
Environment="SSL=true"
|
||||
Environment="GZIP=true"
|
||||
Environment="LOG_LEVEL=debug"
|
||||
Environment="LOG_OUTPUT=both"
|
||||
Environment="LOG_DIR=/home/deploy/staging/logs"
|
||||
LimitNOFILE=65536
|
||||
Restart=on-failure
|
||||
TimeoutSec=30
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user