Skip to content

Commit

Permalink
Update CLOUD_DEPLOYMENT var
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Jul 25, 2024
1 parent 7cc25ae commit 2405664
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
OBJECT_STORAGE_SECRET_ACCESS_KEY=object_storage_root_password
GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
CELERY_METRICS_PORT=8999
CLOUD_DEPLOYMENT=1
CLOUD_DEPLOYMENT=E2E
EOT
- name: Start PostHog
Expand Down
2 changes: 1 addition & 1 deletion bin/e2e-test-runner
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export PGUSER="${PGUSER:=posthog}"
export PGPASSWORD="${PGPASSWORD:=posthog}"
export PGPORT="${PGPORT:=5432}"
export DATABASE_URL="postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:${PGPORT}/${DATABASE}"
export CLOUD_DEPLOYMENT=DEV
export CLOUD_DEPLOYMENT=E2E

source ./bin/celery-queues.env

Expand Down
5 changes: 3 additions & 2 deletions posthog/settings/base_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
TEST = "test" in sys.argv or sys.argv[0].endswith("pytest") or get_from_env("TEST", False, type_cast=str_to_bool) # type: bool
DEMO: bool = get_from_env("DEMO", False, type_cast=str_to_bool) # Whether this is a managed demo environment
CLOUD_DEPLOYMENT: str | None = get_from_env(
"CLOUD_DEPLOYMENT", optional=True
) # "US", "EU", or "DEV" - unset on self-hosted
"CLOUD_DEPLOYMENT",
optional=True, # "US", "EU", "DEV", or "E2E" - unset on self-hosted
)
SELF_CAPTURE: bool = get_from_env("SELF_CAPTURE", DEBUG and not DEMO, type_cast=str_to_bool)
E2E_TESTING: bool = get_from_env(
"E2E_TESTING", False, type_cast=str_to_bool
Expand Down

0 comments on commit 2405664

Please sign in to comment.