Skip to content

Instantly share code, notes, and snippets.

@lance
Created May 10, 2011 19:37
Show Gist options
  • Save lance/965212 to your computer and use it in GitHub Desktop.
Save lance/965212 to your computer and use it in GitHub Desktop.
A Very Simple Sinatra App With TorqueBox
require 'rubygems'
require 'sinatra'
module Simple
class Application < Sinatra::Base
get '/' do
"Hello! TorqueBox says it's #{Time.now}."
end
end
end
run Simple::Application
---
application:
root: /path/to/src/simple
env: development
@lance
Copy link
Author

lance commented May 10, 2011

Put that simple-knob.yml file in $TORQUEBOX_HOME/apps and you're done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment