commit
329b076dec
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo cp restart_partsearch.sh /usr/local/sbin/
|
||||||
|
cd Git-Auto-Deploy
|
||||||
|
sudo python setup.py install
|
||||||
|
sudo cp /ELAB-partsearch/deploy/git-auto-deploy.service /etc/systemd/system
|
||||||
|
sudo systemctl enable git-auto-deploy.service
|
||||||
|
sudo systemctl start git-auto-deploy.service
|
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=GitAutoDeploy
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=www-data
|
||||||
|
Group=www-data
|
||||||
|
WorkingDirectory=/srv/ELAB-partsearch/deploy/Git-Auto-Deploy/
|
||||||
|
ExecStart=/usr/bin/python -m /srv/ELAB-partsearch/deploy/Git-Auto-Deploy/gitautodeploy --daemon-mode --config /srv/ELAB-partsearch/deploy/GitAutoDeploy.config.json
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in new issue