mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore: improve dev:reset and add ngrok to flox (#41463)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
1
.flox/env/manifest.toml
vendored
1
.flox/env/manifest.toml
vendored
@@ -45,6 +45,7 @@ cmake = { pkg-path = "cmake", version = "3.31.5", pkg-group = "cmake" }
|
||||
sqlx-cli = { pkg-path = "sqlx-cli", version = "0.8.3" } # sqlx
|
||||
postgresql = { pkg-path = "postgresql_14" } # psql
|
||||
ffmpeg.pkg-path = "ffmpeg"
|
||||
ngrok = { pkg-path = "ngrok" }
|
||||
|
||||
# Set environment variables in the `[vars]` section. These variables may not
|
||||
# reference one another, and are added to the environment without first
|
||||
|
||||
@@ -86,12 +86,6 @@ core:
|
||||
dev:up:
|
||||
description: Start full PostHog dev stack via mprocs
|
||||
hidden: true
|
||||
dev:setup:
|
||||
cmd: python manage.py setup_dev
|
||||
description: Initialize local development environment (one-time setup)
|
||||
services:
|
||||
- postgresql
|
||||
- clickhouse
|
||||
dev:demo-data:
|
||||
cmd: python manage.py generate_demo_data
|
||||
description: Generate demo data for local testing
|
||||
@@ -100,14 +94,14 @@ core:
|
||||
- clickhouse
|
||||
dev:reset:
|
||||
steps:
|
||||
- docker:services:down
|
||||
- docker:services:remove
|
||||
- docker:services:up
|
||||
- check:postgres
|
||||
- check:clickhouse
|
||||
- migrations:run
|
||||
- dev:demo-data
|
||||
- migrations:sync-flags
|
||||
description: Full reset - stop services, migrate, load demo data, sync flags
|
||||
description: Full reset - wipe volumes, migrate, load demo data, sync flags
|
||||
health_checks:
|
||||
check:clickhouse:
|
||||
bin_script: check_clickhouse_up
|
||||
@@ -272,6 +266,11 @@ docker:
|
||||
description: Stop Docker infrastructure services
|
||||
services:
|
||||
- docker
|
||||
docker:services:remove:
|
||||
cmd: docker compose -f docker-compose.dev.yml down -v
|
||||
description: Stop Docker infrastructure services and remove all volumes (complete wipe)
|
||||
services:
|
||||
- docker
|
||||
docker:deprecated:
|
||||
bin_script: docker
|
||||
description: '[DEPRECATED] Use `hogli start` instead'
|
||||
|
||||
Reference in New Issue
Block a user