aboutsummaryrefslogtreecommitdiff
path: root/utils/update.sh
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-11-21 22:27:21 +0000
committerrubenwardy <rw@rubenwardy.com>2019-11-21 22:27:38 +0000
commit77f8a79c51af6229c0a1807f168db07a8b67c2cc (patch)
tree68f305a4f19fc731a529dc5ac547a3a2eb421dee /utils/update.sh
parent33b2b38308c41fc9d182df241a317f700d861d9a (diff)
downloadcheatdb-77f8a79c51af6229c0a1807f168db07a8b67c2cc.tar.xz
Add useful scriptsv1.20.0
Diffstat (limited to 'utils/update.sh')
-rwxr-xr-xutils/update.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/update.sh b/utils/update.sh
new file mode 100755
index 0000000..97e2593
--- /dev/null
+++ b/utils/update.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+#
+# Call from a docker host to rebuild and update running instances of CDB.
+#
+
+sudo docker-compose build app
+sudo docker-compose build worker
+
+sudo docker-compose up --no-deps -d app
+sudo docker-compose up --no-deps --scale worker=2 -d worker