Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ffissore/ogm-rails-console-example
The sample console (plain and rack-webconsole) shown at OpenGeekMeeting
https://github.com/ffissore/ogm-rails-console-example
Last synced: 1 day ago
JSON representation
The sample console (plain and rack-webconsole) shown at OpenGeekMeeting
- Host: GitHub
- URL: https://github.com/ffissore/ogm-rails-console-example
- Owner: ffissore
- Created: 2012-04-01T19:52:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-01T20:11:53.000Z (over 12 years ago)
- Last Synced: 2023-03-23T03:16:38.748Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
== One console to rule the webapp
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 https://rvm.beginrescueend.com/), launch rake db:migrate then rails s
Then go to http://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 http://localhost:3000/helloworlds press the ` char