« Return to Thread: Is this Rails Environment for GlassFish statement ok?

Is this Rails Environment for GlassFish statement ok?

by Chris Kutler :: Rate this Message:

Reply to Author | View in Thread

I have added the following wording to the 6.5 setting-up.html tutorial. Is it ok?

The IDE does not pass the Rails Environment setting in the Project Properties dialog box to the GlassFish v3 server. If you need to run the application in a different mode on the GlassFish v3 server, such as production mode, uncomment and modify the following statement in the environment.rb file. In order for the change to occur, you must either undeploy the application or restart the server. You can do both of these actions from the Servers node in the Services window

# ENV['RAILS_ENV'] ||= 'production'

Note: Your test suites might not work correctly if you run them while RAILS_ENV is set to production mode.


 « Return to Thread: Is this Rails Environment for GlassFish statement ok?