Last active
August 29, 2015 14:23
-
-
Save ChrisLTD/dfa6f90494f1fdd1a978 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
#!/bin/bash | |
#echo on | |
set -x | |
echo load postgres | |
sudo defaults write /Library/LaunchDaemons/org.macports.postgresql94-server.plist Disabled -bool false | |
sudo launchctl load /Library/LaunchDaemons/org.macports.postgresql94-server.plist | |
echo start redis | |
redis-server --daemonize yes | |
echo start puma with foreman | |
foreman start | |
echo unload postgres | |
sudo launchctl unload /Library/LaunchDaemons/org.macports.postgresql94-server.plist | |
sudo defaults write /Library/LaunchDaemons/org.macports.postgresql94-server.plist Disabled -bool true | |
echo stop redis | |
ps aux | grep 'redis-server' | awk '{print $2}' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment