Andrew Filipowski
2006-Apr-13 10:35 UTC
[Rails] Uninitialized constant in a template for production server only
Not sure what is going on here, we are trying to push out a new version of one of our tools to production. Everything works perfectly in development (mac) and on our staging server (debian sarge) but the prodution server (debian sarge) hates what we have done. We have some variables set in the various environments *.rb file One of them is a link to another product. It changes based on what environments for example we have in development.rb the following set: OTHER_PRODUCT = "localhost:3002" in staging.rb we have: OTHER_PRODUCT = "stage.server.url" and in productionn.rb we have: OTHER_PRODUCT = "production.server.url" In the first two instances everything is fine, but in the production server we always get a 500 error on any page that has a link_to set to use that variable. All servers are running rails 1.1.2 and ruby 1.8.4 any thoughts? Andrew
Andrew Filipowski
2006-Apr-13 11:41 UTC
[Rails] Uninitialized constant in a template for production server only
On a side note if i change the environment on the production server from production to stage everything works fine except that my public folder does not seem to be accessible as css and images do not appear but I have a feeling that that issue is completely unrelated as when i refresh I get a bad gateway error right away which probably has to do with us using apache as a proxy and permission/setting issue which is also causing me a fit since the production server is identicle in everyway to our staging server. But making this change makes me believe that it is indeed a rails issue as opposed to something specific to my environment since changing the rails environment causes things to work correctly. Andrew On Apr 13, 2006, at 6:35 AM, Andrew Filipowski wrote:> Not sure what is going on here, we are trying to push out a new > version of one of our tools to production. Everything works > perfectly in development (mac) and on our staging server (debian > sarge) but the prodution server (debian sarge) hates what we have > done. > > We have some variables set in the various environments *.rb file > > One of them is a link to another product. It changes based on what > environments for example we have in development.rb the following set: > > OTHER_PRODUCT = "localhost:3002" > > in staging.rb we have: > > OTHER_PRODUCT = "stage.server.url" > > and in productionn.rb we have: > > OTHER_PRODUCT = "production.server.url" > > In the first two instances everything is fine, but in the > production server we always get a 500 error on any page that has a > link_to set to use that variable. > > All servers are running rails 1.1.2 and ruby 1.8.4 any thoughts? > > Andrew > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails