mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
11 lines
325 B
Plaintext
11 lines
325 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
export PGDATA=/var/lib/postgresql/data
|
||
|
|
||
|
export DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog
|
||
|
|
||
|
/etc/init.d/postgresql start
|
||
|
|
||
|
python manage.py migrate
|
||
|
DEBUG=1 gunicorn posthog.wsgi --bind 0.0.0.0:8000 --log-file - -e DEBUG=1 -e DATABASE_URL=postgres://posthog:posthog@localhost:5432/posthog
|