Add script to run RQ worker process

This commit is contained in:
Patrick Smith 2018-10-25 15:56:19 -04:00
parent 7f2442a24f
commit 3a442b47e7

11
script/rq_worker Executable file
View File

@ -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"