This is the ruby on rails version.
You can use to debug or change the state of your app.
To run it, set ruby up (see rvm.beginrescueend.com/), launch rake db:migrate
then rails s
Then go to localhost:3000/console and start scripting.
During the demo, I’ve changed the database name. Try running these lines to discover how
ActiveRecord::Base.connection_config ActiveRecord::Base.connection_pool.disconnect!
The console can even be accessed directly from bash, through curl
curl -X POST -d 'script=ActiveRecord::Base.connection_config' http://localhost:3000/console.text
To use rack-webconsole, switch to webconsole branch (git checkout webconsole
), then at page localhost:3000/helloworlds press the ‘ char