Closed djordjelacmanovic closed 3 years ago
Thanks for the PR, however, we decided not to add this functionality to core. The reason is, we already support executing arbitrary Rails/Rake tasks, which you can invoke from CLI like this:
mina "rails[dbconsole]"
This will have the same effect as your proposed solution.
If you use this task often, you can also add it to your config/deploy.rb
:
task :dbconsole do
invoke :rails, 'dbconsole'
end
which you can then invoke from CLI: mina dbconsole
You can do the same with Rake tasks: mina "rake[dbconsole]"
Added support for running
rails dbconsole
, which opens an interactive command line interface to the app's database.