0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/bin/pull_production_db

8 lines
262 B
Plaintext
Raw Permalink Normal View History

2020-01-24 20:00:25 +01:00
read -r -p "Are you sure you want to pull production db? It'll destroy your local db [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
2020-01-25 04:30:34 +01:00
dropdb posthog;
heroku pg:pull DATABASE_URL posthog --app posthog
2020-01-24 20:00:25 +01:00
else
echo 'doing nothing';
fi