Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many 'Unitialized constant' errors on Rails production #2564

Closed
brauliobo opened this issue Feb 5, 2015 · 2 comments
Closed

Many 'Unitialized constant' errors on Rails production #2564

brauliobo opened this issue Feb 5, 2015 · 2 comments

Comments

@brauliobo
Copy link

When running the app on development, everything works as expected. But then I run the app on production and I see many Unitialized constant Somenamespace::Someclass errors. I can see the paths for constants are added to $: and config.autoload_paths (from rails).

I'm using rails 3.2.21.
The same situation works fine with ruby 2.2.0.

@brauliobo
Copy link
Author

It is surely related to config.threadsafe!. Tried http://deploymentzone.com/2012/06/08/jruby-on-rails-and-uninitialized-constant-in-production/ without success.

@brauliobo
Copy link
Author

Sorry, the problem is that config.threadsafe! sets config.dependency_loading = false

@enebo enebo added this to the Invalid or Duplicate milestone Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants