mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
15 lines
426 B
Bash
Executable File
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." |