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.
23 lines
406 B
Plaintext
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
|