Created
September 12, 2013 15:35
-
-
Save Melonbwead/6539578 to your computer and use it in GitHub Desktop.
Old Rails setup Cheatsheel
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
alias ss='thin --stats "/thin/stats" start' | |
alias sg='ruby script/generate' | |
alias sd='ruby script/destroy' | |
alias sp='ruby script/plugin' | |
alias sr='ruby script/runner' | |
alias ssp='ruby script/spec' | |
alias rdbm='rake db:migrate' | |
alias rdbtp='rake db:test:prepare' | |
alias migrate='rake db:migrate && rake db:test:prepare' | |
alias sc='ruby script/console' | |
alias sd='ruby script/server --debugger' | |
alias devlog='tail -f log/development.log' | |
alias testlog='tail -f log/test.log' | |
alias prodlog='tail -f log/production.log' | |
alias -g RET='RAILS_ENV=test' | |
alias -g REP='RAILS_ENV=production' | |
alias -g RED='RAILS_ENV=development' | |
function remote_console() { | |
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment