rails.plugin.zsh 713 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'
Lucas Uyezu's avatar
Lucas Uyezu committed
13
14
alias testlog='tail -f log/test.log'
alias prodlog='tail -f log/production.log'
15
16
17
alias -g RET='RAILS_ENV=test'
alias -g REP='RAILS_ENV=production'
alias -g RED='RAILS_ENV=development'
18

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