added deploy watch, pull script. minor refactors
This commit is contained in:
18
scripts/deploy-watch.service
Normal file
18
scripts/deploy-watch.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=hwilliams dev root watcher
|
||||
After=docker.service network-online.target
|
||||
Wants=network-online.target
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__DEPLOY_USER__
|
||||
WorkingDirectory=__REPO_DIR__
|
||||
Environment=REPO_DIR=__REPO_DIR__
|
||||
Environment=SERVICE=__SERVICE__
|
||||
ExecStart=__REPO_DIR__/scripts/deploy-watch.sh
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user