Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Vivek Pandey
RE: App environment not passed to Sinatra [ reply ]  
2009-09-11 20:19
This seems like a bug.Can you report an issue and describe the steps to reproduce it.

vivek.

By: Ken D
App environment not passed to Sinatra [ reply ]  
2009-09-11 19:37
I am running a Sinatra app under glassfish. In glassfish.yml I set the app environment to production. I also have passed it on the command line. It writes out:
Starting GlassFish server at: 10.16.8.14:4568 in production environment...

So GF has read the env correctly. Unfortunately, Sinatra then comes up in development mode. This forces me to manually set the environment in my sinatra code.

Regards,
KD