From 3a442b47e76e2e640706644045e4aaca7a158236 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Thu, 25 Oct 2018 15:56:19 -0400 Subject: [PATCH] Add script to run RQ worker process --- script/rq_worker | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 script/rq_worker diff --git a/script/rq_worker b/script/rq_worker new file mode 100755 index 00000000..7b5a0276 --- /dev/null +++ b/script/rq_worker @@ -0,0 +1,11 @@ +#!/bin/bash + +# script/rq_worker: Launch the Flask-RQ worker + +source "$(dirname "${0}")"/../script/include/global_header.inc.sh + +# Before starting the server, apply any pending migrations to the DB +migrate_db + +# Launch the worker +run_command "flask rq worker"