-
-
Save mytrile/77f05f3f8b8525cf181a to your computer and use it in GitHub Desktop.
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
# using ruby 1.9.2-p180 installed with rvm on Fedora 14 | |
require 'rubygems' | |
require 'goliath' | |
class Test < Goliath::API | |
def response env | |
[200,{}, "Hello WOrld"] | |
end | |
end |
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
ruby app.rb -sv -p 9000 | |
/home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:48:in `const_get': uninitialized constant Kernel::App (NameError) | |
from /home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:48:in `run!' | |
from /home/dimitar.kostov/.rvm/gems/ruby-1.9.2-p180/gems/goliath-0.9.0/lib/goliath/application.rb:87:in `block in <module:Goliath>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment