From eae6127c6a8bc86a1e572224f653de57209d2a01 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 29 Jul 2019 22:37:44 +0200 Subject: [PATCH] Add update script --- frontend/update.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 frontend/update.sh diff --git a/frontend/update.sh b/frontend/update.sh new file mode 100755 index 0000000..d1e8f36 --- /dev/null +++ b/frontend/update.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env sh + +set -e + +update() { + git stash + git pull + git stash pop +} + +build() { + docker-compose build + docker-compose down + docker-compose up -d +} + +update +build