-
Notifications
You must be signed in to change notification settings - Fork 163
Demo Instance
I've created a demo instance of Noah running on Heroku and using openredis. Many thanks to Michel Martens (soveran) for jumping right up and getting me in the beta. You can access the demo instance here:
Loading it up will give you the Noah sample greeting page. I plan on allowing that as an override in config.ru down the road.
Fair warning, the demo may or may not have any data in it. I plan on redeploying each time I push a new build to github and when I do that, I'll repopulate with the sample data.
Feel free to hit the demo API endpoints as documented in the wiki here under proposed API
curl -X PUT -d '{"name":"noah-demo-app"}' http://noah-demo.heroku.com/a/noah-demo-app
{"name":"noah-demo-app","result":"success","action":"create","id":"4"}
curl -X PUT -d '{"format":"string","body":"http://noah-demo.heroku.com"}' http://noah-demo.heroku.com/c/noah-demo-app/url
{"dependencies":"updated","result":"success","action":"create","application":"noah-demo-app","id":"6","item":"url"}
If you want to deploy your own demo instance to heroku, you need TWO files - config.ru and a Gemfile. The config.ru looks like this:
require 'rubygems'
require 'sinatra'
require 'noah'
## Uncomment the following to hardcode a redis url
ENV['REDIS_URL'] = "<my openredis url>"
noah = Noah::App.new do
set :run, false
set :environment, :production
end
run noah
There's nothing else to it.