Files
astuto/script/docker-update.sh
2019-09-23 12:14:35 +02:00

15 lines
426 B
Bash
Executable File

#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Starting update..."
echo "-> Docker image will be rebuilt if necessary"
echo "-> Database schema will be updated if necessary"
echo "-> Webpack will compile assets"
docker-compose build
docker-compose run --rm web yarn install # needed to avoid yarn integrity check fail
docker-compose run --rm -e UPDATE=1 web
echo "Update completed."