Last active
August 29, 2015 14:22
-
-
Save sebastjan-hribar/039748f06964f3fa9589 to your computer and use it in GitHub Desktop.
mount_more_apps
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 'pm' | |
require 'qm' |
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
LoadError at /qm | |
cannot load such file -- pm | |
Ruby C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb: in require, line 55 | |
Web GET localhost/qm | |
Jump to: | |
GET | |
POST | |
Cookies | |
ENV | |
Traceback (innermost first) | |
C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb: in require | |
return gem_original_require(path)... | |
C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb: in require | |
return gem_original_require(path)... | |
apps.rb: in <top (required)> | |
require 'pm'... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/reloader.rb: in load | |
load(@file)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/reloader.rb: in load_file | |
load(@file)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/reloader.rb: in load_apps | |
load_file... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/reloader.rb: in reload! | |
load_apps(remove_apps)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/reloader.rb: in reload | |
reload!... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/server.rb: in current_app | |
@reloader.reload... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/server.rb: in call | |
app = current_app || raise("Could not find an app called `#{@reloader.name}`")... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/cascade.rb: in block in call | |
result = app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/cascade.rb: in each | |
@apps.each do |app|... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/cascade.rb: in call | |
@apps.each do |app|... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/server.rb: in call | |
status, headers, body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/tempfile_reaper.rb: in call | |
status, headers, body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/lint.rb: in _call | |
status, headers, @body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/lint.rb: in call | |
dup._call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/showexceptions.rb: in call | |
@app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/commonlogger.rb: in call | |
status, header, body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/chunked.rb: in call | |
status, headers, body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/content_length.rb: in call | |
status, headers, body = @app.call(env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb: in block in pre_process | |
response = @app.call(@request.env)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb: in catch | |
catch(:async) do... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb: in pre_process | |
catch(:async) do... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb: in process | |
post_process(pre_process)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb: in receive_data | |
process if @request.parse(data)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb: in run_machine | |
run_machine... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb: in run | |
run_machine... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/backends/base.rb: in start | |
EventMachine.run(&starter)... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/server.rb: in start | |
@backend.start { setup_signals if @setup_signals }... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/handler/thin.rb: in run | |
server.start... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/server.rb: in start | |
server.run wrapped_app, options, &blk... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/lib/camping/server.rb: in start | |
super... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/rack-1.6.1/lib/rack/server.rb: in start | |
new(options).start... | |
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/camping-2.1.532/bin/camping: in <top (required)> | |
Camping::Server.start... | |
C:/Ruby21-x64/bin/camping: in load | |
load Gem.bin_path('camping', 'camping', version)... | |
C:/Ruby21-x64/bin/camping: in <main> | |
load Gem.bin_path('camping', 'camping', version)... | |
Request information | |
GET | |
No GET data. | |
POST | |
No POST data. | |
COOKIES | |
No cookie data. | |
Rack ENV | |
Variable Value | |
GATEWAY_INTERFACE | |
CGI/1.2 | |
HTTP_ACCEPT | |
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
HTTP_ACCEPT_ENCODING | |
gzip, deflate | |
HTTP_ACCEPT_LANGUAGE | |
sl,en-GB;q=0.7,en;q=0.3 | |
HTTP_CONNECTION | |
keep-alive | |
HTTP_HOST | |
localhost:3301 | |
HTTP_USER_AGENT | |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 | |
HTTP_VERSION | |
HTTP/1.1 | |
PATH_INFO | |
/qm | |
QUERY_STRING | |
REMOTE_ADDR | |
127.0.0.1 | |
REQUEST_METHOD | |
GET | |
REQUEST_PATH | |
/qm | |
REQUEST_URI | |
/qm | |
SCRIPT_NAME | |
SERVER_NAME | |
localhost | |
SERVER_PORT | |
3301 | |
SERVER_PROTOCOL | |
HTTP/1.1 | |
SERVER_SOFTWARE | |
thin 1.6.3 codename Protein Powder | |
async.callback | |
#<Method: Thin::Connection#post_process> | |
async.close | |
#<EventMachine::DefaultDeferrable:0x0000000295e078> | |
rack.errors | |
#<Rack::Lint::ErrorWrapper:0x0000000289cce8 @error=#<IO:<STDERR>>> | |
rack.input | |
#<Rack::Lint::InputWrapper:0x0000000289d238 @input=#<StringIO:0x00000002968dc0>> | |
rack.multiprocess | |
false | |
rack.multithread | |
false | |
rack.request.cookie_hash | |
{} | |
rack.request.query_hash | |
{} | |
rack.request.query_string | |
rack.run_once | |
false | |
rack.tempfiles | |
[] | |
rack.url_scheme | |
http | |
rack.version | |
[1, 0] |
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
Camping.goes :Pm | |
module Pm::Controllers | |
class Index | |
def get | |
render :index | |
end | |
end | |
end | |
module Pm::Views | |
def index | |
h2 do | |
"Site for pm" | |
end | |
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
Camping.goes :Qm | |
module Qm::Controllers | |
class Index | |
def get | |
render :index | |
end | |
end | |
end | |
module Qm::Views | |
def index | |
h2 do | |
"Site for qm" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment