mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
8 lines
262 B
Plaintext
Executable File
8 lines
262 B
Plaintext
Executable File
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
|
|
dropdb posthog;
|
|
heroku pg:pull DATABASE_URL posthog --app posthog
|
|
else
|
|
echo 'doing nothing';
|
|
fi |