2020-02-08 20:06:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export PGDATA=/var/lib/postgresql/data
|
|
|
|
|
|
|
|
export DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog
|
2020-04-07 12:13:39 +02:00
|
|
|
export REDIS_URL=redis://localhost
|
2020-02-08 20:06:46 +01:00
|
|
|
|
2020-02-09 21:21:06 +01:00
|
|
|
/etc/init.d/postgresql start > /dev/null
|
2020-04-07 12:13:39 +02:00
|
|
|
/etc/init.d/redis-server start > /dev/null
|
2020-02-08 20:06:46 +01:00
|
|
|
|
2020-04-07 12:13:39 +02:00
|
|
|
DEBUG=1 celery -A posthog worker --loglevel=info &
|
|
|
|
DEBUG=1 gunicorn posthog.wsgi --config gunicorn.config.py --bind 0.0.0.0:8000 --log-file - -e DEBUG=1 -e DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog
|