This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :rails do | |
desc "Open the rails console" | |
task :console do | |
on roles(:app) do | |
rails_env = fetch(:rails_env, 'production') | |
execute_interactively "$HOME/.rbenv/bin/rbenv exec bundle exec rails console #{rails_env}" | |
end | |
end | |
desc "Open the rails dbconsole" |