Quickstarts
Ruby on Rails
Interact with the rails console or execute ad-hoc scripts in a Ruby On Rails application.
Prerequisites
To get the most out of this guide, you will need to:
- Either create an account in our managed instance or deploy your own hoop.dev instance
- hoop.dev’s CLI installed in your local machine
- You must be your account administrator to perform the following commands
Configuration
To proxy the rails console
command, execute the following command within your root application path.
hoop run --name railsc-demo --command 'rails console'
To proxy ad-hoc executions add the command rails runner -
.
hoop run --name rails-adhoc-demo --command 'rails runner -'
How to Use
Users can now connect and perform ad-hoc executions.
hoop connect railsc-demo
hoop exec rails-adhoc-demo -i 'puts "Hello World"'