mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
908cfaf2c8
* Don't run web in debug for preview docker build * worker to not debug
17 lines
465 B
Bash
Executable File
17 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
export PGDATA=/var/lib/postgresql/data
|
|
|
|
export DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog
|
|
export REDIS_URL=redis://localhost
|
|
export DISABLE_SECURE_SSL_REDIRECT=1
|
|
export SECURE_COOKIES=0
|
|
export SECRET_KEY="This is pre-prod preview"
|
|
|
|
/etc/init.d/postgresql start > /dev/null
|
|
/etc/init.d/redis-server start > /dev/null
|
|
|
|
./bin/docker-worker &
|
|
gunicorn posthog.wsgi --config gunicorn.config.py --bind 0.0.0.0:8000 --log-file -
|