Skip to content

Commit

Permalink
chore: add mprocs as an alternative to bin/start
Browse files Browse the repository at this point in the history
  • Loading branch information
andehen committed Dec 3, 2024
1 parent 8b60590 commit d4b2b5d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/mprocs.yaml
Original file line number Diff line number Diff line change
@@ -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'
8 changes: 8 additions & 0 deletions bin/start-mprocs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d4b2b5d

Please sign in to comment.