Created
May 26, 2019 02:06
-
-
Save mezgani/23efd654b4ef65a3084905bafaf1e091 to your computer and use it in GitHub Desktop.
Sinatra load
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
Boot Error | |
Something went wrong while loading config.ru | |
NameError: uninitialized constant ApplicationController | |
/home/mni/sinatra/app/controllers/system_parameters_controller.rb:1:in `<top (required)>' | |
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' | |
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' | |
config.ru:1:in `block in inner_app' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize' | |
config.ru:1:in `new' | |
config.ru:1:in `inner_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:113:in `eval' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:113:in `inner_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:103:in `assemble_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:86:in `proceed_as_child' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:31:in `call!' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:18:in `call' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/favicon.rb:12:in `call' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/static.rb:14:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:153:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/handler/webrick.rb:86:in `service' | |
/usr/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service' | |
/usr/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run' | |
/usr/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread' |
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
Boot Error | |
Something went wrong while loading config.ru | |
NameError: uninitialized constant ApplicationController | |
/home/mni/sinatra/app/controllers/system_parameters_controller.rb:1:in `<top (required)>' | |
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' | |
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' | |
config.ru:1:in `block in inner_app' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize' | |
config.ru:1:in `new' | |
config.ru:1:in `inner_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:113:in `eval' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:113:in `inner_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:103:in `assemble_app' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:86:in `proceed_as_child' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:31:in `call!' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:18:in `call' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/favicon.rb:12:in `call' | |
/var/lib/gems/2.5.0/gems/shotgun-0.9.2/lib/shotgun/static.rb:14:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:153:in `call' | |
/var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/handler/webrick.rb:86:in `service' | |
/usr/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service' | |
/usr/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run' | |
/usr/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread' |
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
mezgani@cygne:~/sinatra$ tree | |
. | |
├── app | |
│ ├── controllers | |
│ │ ├── application_controller.rb | |
│ │ └── system_parameters_controller.rb | |
│ ├── models | |
│ │ └── system_parameters_model.rb | |
│ └── views | |
│ ├── about.erb | |
│ ├── index.erb | |
│ └── status.erb | |
├── config | |
├── config.ru | |
├── db | |
├── Gemfile | |
├── public | |
│ ├── css | |
│ ├── img | |
│ └── js | |
└── README.md | |
10 directories, 9 files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment