Created
March 31, 2011 19:11
-
-
Save xdamman/897014 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
# Add this to your ~/.bash_profile | |
# Now you can just type in terminal storifydev | |
# It will start mongod, redis-server, chdir to your working dir, open textmate, and launch Chrome | |
function storifydev() { | |
STORIFY_DIR="/Users/xdamman/Dropbox/github/storify" | |
sudo rm /data/db/mongod.lock | |
echo "Starting MongoDB" | |
sudo mongod > /dev/null & | |
echo "Starting Redis" | |
redis-server> /dev/null & | |
echo "Launching dev environment" | |
cd $STORIFY_DIR | |
mate . | |
open /Applications/Google\ Chrome.app http://localhost.storify.com:3000 & | |
node-dev index.js | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment