Evaneos / silex-rest-skeleton

Silex REST API skeleton fro your micro services and APIs
4 stars 2 forks source link

Possible issue with environment detection #11

Open SelrahcD opened 8 years ago

SelrahcD commented 8 years ago

The use of an environment variable named SILEX_SKT_ENV for every app using the skeleton might be an issue if all apps are running on the same host but are not sharing the env. I guess this is not the only env var used.

jjsaunier commented 8 years ago

Yes we should make a documentation about that but yes,env variable is proper of each application, it's just a placeholder.

ghost commented 8 years ago

Then, we should parameterize the name of the two env variables

ghost commented 8 years ago

On the other hand, having a global env var is quite handy too... so that, on a same server, every app has the same env name key, that can be useful... but dangerous... ;)