4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails関係のコマンドショートハンド(rbenv, bundle exec多用者向け)

Last updated at Posted at 2013-07-16
# ~/.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'
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?