Automate immutable production deployments
This commit is contained in:
@@ -7,8 +7,10 @@ RequiresMountsFor=/srv/watermaps-data
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/watermaps
|
||||
ExecStart=/opt/watermaps/deploy/scripts/update-route-data.sh
|
||||
WorkingDirectory=/opt/watermaps/current
|
||||
Environment=WATERMAPS_ENV_FILE=/opt/watermaps/deploy/.env.production
|
||||
Environment=WATERMAPS_IMAGES_ENV_FILE=/opt/watermaps/deploy/.env.images
|
||||
ExecStart=/opt/watermaps/current/deploy/scripts/update-route-data.sh
|
||||
TimeoutStartSec=0
|
||||
Nice=10
|
||||
IOSchedulingClass=best-effort
|
||||
|
||||
Reference in New Issue
Block a user