Created
December 22, 2016 21:19
-
-
Save sedrickcz/73b4fdd1eba77f6617e7b7bdb9237784 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bunzip2 -f db/crawdio_production_2016-12-22-221526.sql.bz2 && psql -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'kingdomcomerpg_development' AND pid <> pg_backend_pid();;" ; dropdb kingdomcomerpg_development; createdb kingdomcomerpg_development; psql -d kingdomcomerpg_development < db/crawdio_production_2016-12-22-221526.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment