Hide Forgot
Description of problem: mongodb environment variables not showing up on scaled applications might also be affecting Java applications... Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create php application 2.add mongo db 3. variables show up using ssh, but not via web application http://phpscale-cdaley.rhcloud.com/phpinfo.php Actual results: mongo environment variables are not present Expected results: mongo env variables should be present Additional info:
Was the application restarted between steps #2 and #3 so the jvm processes could pick up the new environment variables?
I have restarted the PHP application that I am testing on, I will ask the user if they have on their JAVA application.
The PHP cartridge is implemented to use httpd restart for a better user experience, so a rhc stop/rhc start is required between steps #2 and #3 to pick up the environment variable changes. The jboss cartridges do a stop/start for their restart, so rhc restart should be sufficient between steps #2 and #3.
Tested on devenv_3921 with jbossas app, after app restart the new added env can be detected by jsp script.