aboutsummaryrefslogtreecommitdiff
path: root/push-receive-redeploy.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-05 04:06:04 -0300
committerEuAndreh <eu@euandre.org>2018-07-05 04:06:04 -0300
commit13465a968eba6912231c0819419f2bc9f844dc09 (patch)
tree0d5c0f83e353d480075d411df9622ba6e193d2d2 /push-receive-redeploy.sh
parentSubscribe to DotA Digest (diff)
downloaddotfiles-13465a968eba6912231c0819419f2bc9f844dc09.tar.gz
dotfiles-13465a968eba6912231c0819419f2bc9f844dc09.tar.xz
Add VPS scripts and configuration
- add scp.sh to cp relevant deployment files; - add docker-compose.yml (encrypted) and push-receive-redeploy.sh;
Diffstat (limited to 'push-receive-redeploy.sh')
-rwxr-xr-xpush-receive-redeploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/push-receive-redeploy.sh b/push-receive-redeploy.sh
new file mode 100755
index 0000000..87fecd5
--- /dev/null
+++ b/push-receive-redeploy.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd ~/
+docker pull registry.gitlab.com/euandreh/songbooks/prod:latest
+docker-compose stop songbooks_app
+docker-compose up -d --no-deps songbooks_app