Created
March 1, 2019 14:09
-
-
Save A5308Y/6aa80922b9ffeb8b689ea2f67ded15b1 to your computer and use it in GitHub Desktop.
This file contains 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
LATEST_DUMP=$(ls -tr ~/tempfiles | tail -n 1) | |
dropdb -h localhost -U webapp webapp_development && createdb -h localhost -U webapp webapp_development | |
psql -h localhost -U webapp -f ~/tempfiles/$LATEST_DUMP -d webapp_development -e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment