mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 18:44:14 +00:00
86f97d5937
* added new table to handle called process relationships * process caller api endpoint is working again w/ burnettk * fixed more tests and mypy w/ burnettk * unit tests are passing and commented out unrelated failing test w/ burnettk * all tests are passing almost w/ burnettk * uncommented flakey test w/ burnettk * minor change while reviewing w/ burnettk * some changes from coderabbit suggestions w/ burnettk * commented out sampling change w/ burnettk * name the foreign keys on the process caller table w/ burnettk --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com>
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function error_handler() {
|
|
echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
|
exit "$2"
|
|
}
|
|
trap 'error_handler ${LINENO} $?' ERR
|
|
set -o errtrace -o errexit -o nounset -o pipefail
|
|
|
|
script_dir="$(
|
|
cd -- "$(dirname "$0")" >/dev/null 2>&1
|
|
pwd -P
|
|
)"
|
|
. "${script_dir}/local_development_environment_setup"
|
|
|
|
server_type="${1:-api}"
|
|
|
|
if [[ "$server_type" == "celery_worker" ]]; then
|
|
"${script_dir}/start_celery_worker"
|
|
else
|
|
if [[ -n "${SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA:-}" || -n "${SPIFFWORKFLOW_BACKEND_WSGI_PATH_PREFIX:-}" ]]; then
|
|
echo "using ./bin/boot_server_in_docker because we actually load fixture data in wsgi.py, which will not be run with the typical local dev flask server"
|
|
./bin/boot_server_in_docker
|
|
else
|
|
|
|
if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then
|
|
SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP=false poetry run python bin/save_all_bpmn.py
|
|
fi
|
|
|
|
# this line blocks
|
|
poetry run flask run -p "$port" --host=0.0.0.0
|
|
fi
|
|
fi
|