mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-13 11:44:28 +00:00
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
|
||||
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 [[ -n "${SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY:-}" ]]; then
|
||||
export SPIFFWORKFLOW_BACKEND_GIT_SSH_PRIVATE_KEY_PATH=$(mktemp /tmp/ssh_private_key.XXXXXX)
|
||||
@ -121,6 +114,14 @@ fi
|
||||
log_info "Running data migrations"
|
||||
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
|
||||
log_info "Starting gunicorn server"
|
||||
export IS_GUNICORN="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user