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.
This commit is contained in:
22
script/include/run_update
Normal file
22
script/include/run_update
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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
|
Reference in New Issue
Block a user