# ~/.bashrc
#
# Ruby on Rails shorthand definitions
#
# ~/.bashrc
# Ubuntuの人は ~/.bash_profile に書いてね
# http://takuya-1st.hatenablog.jp/entry/20110102/1293970212
# http://kk6.hateblo.jp/entry/20120425/1335363377
#
# rake関係
alias brake='bundle exec rake'
alias bdrop='bundle exec rake db:drop'
alias bcreate='bundle exec rake db:create'
alias bmigrate='bundle exec rake db:migrate'
alias bresethard='bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed && bundle exec rake db:fixtures:load'
alias breset='bundle exec rake db:reset && bundle exec rake db:fixtures:load'
alias broutes='bundle exec rake routes'
# rails関係
alias bgen='bundle exec rails generate'
alias bserver='bundle exec rails server --debugger'
alias brc='bundle exec rails console'
# capistrano関係
alias bcap='bundle exec cap'
alias bcaps='bundle exec cap staging'
# ステージング環境にデプロイ(rake db:migrate込み)
alias bcapsdc='bundle exec cap staging deploy:cold'
# ステージング環境にデプロイ
alias bcapsd='bundle exec cap staging deploy'
# 5世代前以降のreleaseを削除する
alias bcapsclean='bundle exec cap staging deploy:cleanup'
More than 5 years have passed since last update.
Rails関係のコマンドショートハンド(rbenv, bundle exec多用者向け)
Last updated at Posted at 2013-07-16
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme