Created
May 10, 2011 19:37
-
-
Save lance/965212 to your computer and use it in GitHub Desktop.
A Very Simple Sinatra App With TorqueBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
application: | |
root: /path/to/src/simple | |
env: development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put that simple-knob.yml file in $TORQUEBOX_HOME/apps and you're done.