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

RAILS_ENV in config/environment.rb is not respected #107

Closed
FooBarWidget opened this issue May 29, 2014 · 11 comments
Closed

RAILS_ENV in config/environment.rb is not respected #107

FooBarWidget opened this issue May 29, 2014 · 11 comments

Comments

@FooBarWidget
Copy link
Member

From jaramillo.joseph on April 12, 2008 00:15:15

What steps will reproduce the problem? 1. Install Passenger
2. Configure a virtualhost for a Rails app
3. Set the RailsEnv directive to production
4. Set the RAILS_ENV in config/environment.rb to 'development'
5. Load a path that does not exist ( http://myapp.com/does-not-exist ) What is the expected output? What do you see instead? Expected: Rails backtrace for NoMethodError
Instead: Default Rails 404 page. What version of the product are you using? On what operating system? 1.0.1 on Centos 4.5 w/ Apache 2.0

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=6

@FooBarWidget
Copy link
Member Author

From honglilai on April 12, 2008 00:53:29

Thanks for the report. We'll take a closer look at this after the weekend.

Cc: honglilai

@FooBarWidget
Copy link
Member Author

From honglilai on April 23, 2008 04:04:31

Status: Fixed
Labels: Milestone-1.0.2 Compatibility

@FooBarWidget
Copy link
Member Author

From honglilai on April 23, 2008 04:05:54

This problem should be fixed in the development version (git repository) now. Could
you verify? Thanks.

@FooBarWidget
Copy link
Member Author

From jaramillo.joseph on April 23, 2008 16:31:43

I just pulled it down and installed... still no dice. Are there any particular logs
I can send you that may assist?

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 01:30:51

What do you have in your environment.rb? It should be

ENV['RAILS_ENV'] = 'development'

instead of the default

ENV['RAILS_ENV'] ||= 'development'

@FooBarWidget
Copy link
Member Author

From jaramillo.joseph on April 24, 2008 09:44:17

It's set correctly, but still isn't working. I've restarted httpd and touched
tmp/restart.txt -- no dice.

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 09:59:22

Which Rails version are you using?

Status: Started

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 10:57:25

I've just tested with Apache 2.0.55 and Apache 2.2.4, with both Rails 2.0.2 and
1.2.6. I could not reproduce this problem with the latest development version.

@FooBarWidget
Copy link
Member Author

From jaramillo.joseph on April 24, 2008 12:41:49

Very strange. What else can we do? This isn't working on any of the boxes I've
tried (CentOS 4.5, 5, and Mac OS X, on Apache 2.0 and 2.2 with Rails 1.2.3, 1.2.6,
and 2.0.2).

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 14:39:15

Are you sure you've installed the development version correctly? After running 'git
clone' you should run the installer (bin/passenger-install-apache2-module) and copy &
paste the given config options.

@FooBarWidget
Copy link
Member Author

From honglilai on April 28, 2008 11:42:15

'xipher1' on IRC confirms that this bug has been fixed.

Status: Fixed

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

1 participant