atst/script/include/run_update
dandds beabd2ce72 Remove the scriptz submodule and hard-commit the files.
The submodule is a leftover from when this project was intended to work
as a series of microservices. It was meant to provide common
functionality to the builds for every microservice. That's no longer the
case, and the submodule is a pain-point both in on-boarding new
developers and running the Docker build.
2019-07-14 16:01:13 -04:00

23 lines
406 B
Plaintext

# update: Bring an existing application up-to-date
#
# Load update functions
source ./script/include/update_functions.inc.sh
## Set option defaults
# If MIGRATE_DB is not set, set it to "false"
if [ -z "${MIGRATE_DB+is_set}" ]; then
MIGRATE_DB="false"
fi
## Main
# Update dependencies
source ./script/bootstrap
# Update database schema
if [ "${MIGRATE_DB}" = "true" ]; then
migrate_db
fi
seed_db