rails.plugin.zsh 633 Bytes
Newer Older
1
2
3
4
alias ss='thin --stats "/thin/stats" start'
alias sg='ruby script/generate'
alias sd='ruby script/destroy'
alias sp='ruby script/plugin'
Godwin Ko's avatar
Godwin Ko committed
5
alias sr='ruby script/runner'
6
7
alias ssp='ruby script/spec'
alias rdbm='rake db:migrate'
8
alias rdbtp='rake db:test:prepare'
Timothy Andrew's avatar
Timothy Andrew committed
9
alias migrate='rake db:migrate && rake db:test:prepare'
10
11
alias sc='ruby script/console'
alias sd='ruby script/server --debugger'
12
alias devlog='tail -f log/development.log'
13
14
15
alias -g RET='RAILS_ENV=test'
alias -g REP='RAILS_ENV=production'
alias -g RED='RAILS_ENV=development'
16

17
18
19
function remote_console() {
  /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
}