-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add mprocs as an alternative to bin/start
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |