save all bpmn files right before starting the server w/ burnettk
This commit is contained in:
parent
8cb39ef214
commit
b6f50a65f3
|
@ -72,13 +72,6 @@ if [[ "${SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA:-}" == "true" ]]; then
|
||||||
worker_count=1
|
worker_count=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then
|
|
||||||
if [[ -z "${SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS:-}" ]]; then
|
|
||||||
export SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS=false
|
|
||||||
fi
|
|
||||||
poetry run python bin/save_all_bpmn.py
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH:-}" ]]; then
|
if [[ -z "${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH:-}" ]]; then
|
||||||
if [[ -n "${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY:-}" ]]; then
|
if [[ -n "${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY:-}" ]]; then
|
||||||
export SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH=$(mktemp /tmp/ssh_private_key.XXXXXX)
|
export SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH=$(mktemp /tmp/ssh_private_key.XXXXXX)
|
||||||
|
@ -121,6 +114,14 @@ fi
|
||||||
log_info "Running data migrations"
|
log_info "Running data migrations"
|
||||||
poetry run python ./bin/data_migrations/run_all.py
|
poetry run python ./bin/data_migrations/run_all.py
|
||||||
|
|
||||||
|
##### DO THIS right before starting the server
|
||||||
|
if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then
|
||||||
|
if [[ -z "${SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS:-}" ]]; then
|
||||||
|
export SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS=false
|
||||||
|
fi
|
||||||
|
poetry run python bin/save_all_bpmn.py
|
||||||
|
fi
|
||||||
|
|
||||||
# --worker-class is not strictly necessary, since setting threads will automatically set the worker class to gthread, but meh
|
# --worker-class is not strictly necessary, since setting threads will automatically set the worker class to gthread, but meh
|
||||||
log_info "Starting gunicorn server"
|
log_info "Starting gunicorn server"
|
||||||
export IS_GUNICORN="true"
|
export IS_GUNICORN="true"
|
||||||
|
|
Loading…
Reference in New Issue