Skip to content

Instantly share code, notes, and snippets.

@feldpost
Created November 18, 2015 21:57
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 feldpost/93b7f73b9ec90d242171 to your computer and use it in GitHub Desktop.
Save feldpost/93b7f73b9ec90d242171 to your computer and use it in GitHub Desktop.
Starting Pow w/ Log
rails_server () {
cd /Library/WebServer/railsapps/$*;
touch tmp/restart.txt
# clear the screen
/usr/bin/open -a Terminal
/usr/bin/osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "k" using command down'
return 0
#See a log
tail -f -n 0 log/development.log
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment