add deploy script
This commit is contained in:
parent
f7cfa1a154
commit
b49c53eeda
1 changed files with 17 additions and 0 deletions
17
deploy.sh
Executable file
17
deploy.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
REMOTE_USER=kmahan
|
||||||
|
HOST=orin.kylewm.com
|
||||||
|
REMOTE_PATH=/srv/www/kylewm.com/woodwind
|
||||||
|
|
||||||
|
ssh $REMOTE_USER@$HOST bash -c "'
|
||||||
|
|
||||||
|
set -x
|
||||||
|
cd $REMOTE_PATH
|
||||||
|
|
||||||
|
git pull origin master \
|
||||||
|
&& source venv/bin/activate \
|
||||||
|
&& pip install --upgrade -r requirements.txt \
|
||||||
|
&& sudo restart silopub
|
||||||
|
|
||||||
|
'"
|
Loading…
Add table
Add a link
Reference in a new issue