Created
November 18, 2015 21:57
-
-
Save feldpost/93b7f73b9ec90d242171 to your computer and use it in GitHub Desktop.
Starting Pow w/ Log
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
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