From 0141b8f12df3600be9271a575193e31b214aec86 Mon Sep 17 00:00:00 2001 From: thehuntedpie Date: Tue, 25 Sep 2018 17:49:14 +0300 Subject: [PATCH] use compose project name in deploy, add push script --- deploy.sh | 4 ++++ push.sh | 2 ++ 2 files changed, 6 insertions(+) create mode 100755 push.sh diff --git a/deploy.sh b/deploy.sh index 6c18257..69d0310 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,7 @@ #!/bin/bash +# COMPOSE_PROJECT_NAME should be a unique string for this deployment. Otherwise, if you run multiple deployments, docker-compose down may take down a previous deployment with the same COMPOSE_PROJECT_NAME or parent folder name + +COMPOSE_PROJECT_NAME=mindustry-server + docker-compose down docker-compose up -d diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..85b8798 --- /dev/null +++ b/push.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker-compose -f docker-compose.build.yml push mindustry