Skip to content

Instantly share code, notes, and snippets.

@xdamman
Created March 31, 2011 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdamman/897014 to your computer and use it in GitHub Desktop.
Save xdamman/897014 to your computer and use it in GitHub Desktop.
# 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