diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bf489e..529e45e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - remove rails 5.2 deprecation: _Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead._ - allow to set capistrano role to select server for remote console (#33) - allow to set shell used on server (#31) +- [add rails:c alias to rails:console](https://github.com/ydkn/capistrano-rails-console/issues/36) ## 2.2.1 (2017-09-04) ### Feature diff --git a/README.md b/README.md index 9d66a06..ff91604 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ require 'capistrano/rails/console' Run a remote rails console with: $ cap production rails:console + $ cap production rails:c You can also start a sandbox session: diff --git a/lib/capistrano/rails/console/tasks.cap b/lib/capistrano/rails/console/tasks.cap index 20cf752..329205d 100644 --- a/lib/capistrano/rails/console/tasks.cap +++ b/lib/capistrano/rails/console/tasks.cap @@ -40,5 +40,6 @@ namespace :rails do end end + task c: :console task db: :dbconsole end