fix missing mods directory that breaks installation
Ticket
+issues
Webrick / Passenger fail with
local/mods directory not found
If I create this directory ( /var/local/wagn/local/mods ) manually, wagn (running through passenger and Apache) fails with a Hitch! 500.
I understand it is indeed for local mods, not a path problem.
I used the default setup instructions, and cloned wagn from GitHub yesterday.
Ruby version is 1.9.3
Wagn version is 1.12.5
Running on OpenVZ'ed Debian 7.0
+example
root@ikb:/var/local/wagn# env STATIC_ASSETS=true bundle exec rails server
=> Booting WEBrick
=> Rails 3.2.14 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/var/local/wagn/lib/wagn/loader.rb:11:in `open': No such file or directory - /var/local/wagn/local/mods (Errno::ENOENT)
from /var/local/wagn/lib/wagn/loader.rb:11:in `entries'
from /var/local/wagn/lib/wagn/loader.rb:11:in `block in <module:Loader>'
from /var/local/wagn/lib/wagn/loader.rb:10:in `map'
from /var/local/wagn/lib/wagn/loader.rb:10:in `<module:Loader>'
from /var/local/wagn/lib/wagn/loader.rb:7:in `<module:Wagn>'
from /var/local/wagn/lib/wagn/loader.rb:3:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'
from /var/local/wagn/app/models/card.rb:11:in `<class:Card>'
from /var/local/wagn/app/models/card.rb:3:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:230:in `block in constantize'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in `each'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in `constantize'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:260:in `safe_constantize'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
from /var/local/wagn/app/controllers/card_controller.rb:2:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'
from /var/local/wagn/app/controllers/admin_controller.rb:2:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:313:in `depend_on'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:225:in `require_dependency'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:443:in `each'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:443:in `block in eager_load!'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:441:in `each'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:441:in `eager_load!'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /var/local/wagn/config/environment.rb:6:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /var/local/wagn/config.ru:3:in `block in <main>'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /var/local/wagn/config.ru:in `new'
from /var/local/wagn/config.ru:in `<main>'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'