Commit 966108a0 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #1724 from miry/rails_aliases

Added global aliases to use RAILS_ENV.
parents 6daaae63 ad3f5925
...@@ -10,6 +10,9 @@ alias migrate='rake db:migrate && rake db:test:prepare' ...@@ -10,6 +10,9 @@ alias migrate='rake db:migrate && rake db:test:prepare'
alias sc='ruby script/console' alias sc='ruby script/console'
alias sd='ruby script/server --debugger' alias sd='ruby script/server --debugger'
alias devlog='tail -f log/development.log' alias devlog='tail -f log/development.log'
alias -g RET='RAILS_ENV=test'
alias -g REP='RAILS_ENV=production'
alias -g RED='RAILS_ENV=development'
function remote_console() { function remote_console() {
/usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
......
...@@ -21,3 +21,6 @@ alias rsd='_rails_command server --debugger' ...@@ -21,3 +21,6 @@ alias rsd='_rails_command server --debugger'
alias devlog='tail -f log/development.log' alias devlog='tail -f log/development.log'
alias rdm='rake db:migrate' alias rdm='rake db:migrate'
alias rdr='rake db:rollback' alias rdr='rake db:rollback'
alias -g RET='RAILS_ENV=test'
alias -g REP='RAILS_ENV=production'
alias -g RED='RAILS_ENV=development'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment