From d4b2b5de6b9d2bf89ca81272cc92623b37b5005b Mon Sep 17 00:00:00 2001 From: Anders Asheim Hennum <754494+andehen@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:32:19 +0100 Subject: [PATCH] chore: add mprocs as an alternative to bin/start --- bin/mprocs.yaml | 18 ++++++++++++++++++ bin/start-mprocs | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 bin/mprocs.yaml create mode 100755 bin/start-mprocs diff --git a/bin/mprocs.yaml b/bin/mprocs.yaml new file mode 100644 index 0000000000000..0024cda64c0d0 --- /dev/null +++ b/bin/mprocs.yaml @@ -0,0 +1,18 @@ +procs: + celery-worker: + shell: 'source ./bin/celery-queues.env && python manage.py run_autoreload_celery --type=worker' + + celery-beat: + shell: 'source ./bin/celery-queues.env && python manage.py run_autoreload_celery --type=beat' + + plugin-server: + shell: './bin/plugin-server' + + backend: + shell: 'python3 manage.py runserver' + + frontend: + shell: 'export DEBUG=0 && pnpm install && pnpm start' + + temporal-worker: + shell: 'python3 manage.py start_temporal_worker' diff --git a/bin/start-mprocs b/bin/start-mprocs new file mode 100755 index 0000000000000..48daa05cda0ac --- /dev/null +++ b/bin/start-mprocs @@ -0,0 +1,8 @@ +#!/bin/bash + +export DEBUG=${DEBUG:-1} +export SKIP_SERVICE_VERSION_REQUIREMENTS=${SKIP_SERVICE_VERSION_REQUIREMENTS:-1} +export BILLING_SERVICE_URL=${BILLING_SERVICE_URL:-https://billing.dev.posthog.dev} +export HOG_HOOK_URL=${HOG_HOOK_URL:-http://localhost:3300/hoghook} + +exec mprocs --config bin/mprocs.yaml