From ae909117f428e6a70c500491a5200c013c8b444e Mon Sep 17 00:00:00 2001 From: dandds Date: Thu, 11 Oct 2018 17:31:37 -0400 Subject: [PATCH] use honcho to manage multiple dev processes --- Pipfile | 1 + Pipfile.lock | 10 +++++++++- Procfile | 3 +++ script/server | 5 +---- 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 Procfile diff --git a/Pipfile b/Pipfile index 937896a5..10d7ec29 100644 --- a/Pipfile +++ b/Pipfile @@ -36,6 +36,7 @@ pytest-flask = "*" pytest-env = "*" pytest-cov = "*" selenium = "*" +honcho = "*" [requires] python_version = "3.6.6" diff --git a/Pipfile.lock b/Pipfile.lock index 581e1a7d..cf9730d8 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "7162a0e3c45d05aff99adde9d75128d1772cf030d1e2a722f441b21f251a4645" + "sha256": "c67f5a847351d9d6e8ef165c380dd97fdf623f87cf8299a64109e453027e2458" }, "pipfile-spec": 6, "requires": { @@ -556,6 +556,14 @@ ], "version": "==2.1.11" }, + "honcho": { + "hashes": [ + "sha256:af5806bf13e3b20acdcb9ff8c0beb91eee6fe07393c3448dfad89667e6ac7576", + "sha256:c189402ad2e337777283c6a12d0f4f61dc6dd20c254c9a3a4af5087fc66cea6e" + ], + "index": "pypi", + "version": "==1.0.1" + }, "ipdb": { "hashes": [ "sha256:7081c65ed7bfe7737f83fa4213ca8afd9617b42ff6b3f1daf9a3419839a2a00a" diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..0101271f --- /dev/null +++ b/Procfile @@ -0,0 +1,3 @@ +assets: yarn watch +web: PORT=8000 python app.py +queue: flask rq worker diff --git a/script/server b/script/server index c03cfdd5..1fc46774 100755 --- a/script/server +++ b/script/server @@ -4,8 +4,5 @@ source "$(dirname "${0}")"/../script/include/global_header.inc.sh -# Compile js/css assets -yarn build - # Launch the app -run_command "./app.py ${LAUNCH_ARGS}" +run_command "honcho start"