[Kimchi-devel] [PATCH] Change default environment configuration to production mode.

Aline Manera alinefm at linux.vnet.ibm.com
Wed Aug 13 01:06:52 UTC 2014


Ok... For the good of all let's change it to production

On 08/07/2014 04:18 PM, Paulo Vital wrote:
> Changed the default environment configuration present in the final files
> src/kimchi.conf and src/kimchi.config.py from 'development' to
> 'production' mode.
>
> This modification will prevent that debugging traces be printed in the
> front-end when something goes wrong.
>
> Signed-off-by: Paulo Vital <pvital at linux.vnet.ibm.com>
> ---
>   src/kimchi.conf.in      | 2 +-
>   src/kimchi/config.py.in | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/kimchi.conf.in b/src/kimchi.conf.in
> index 369f2c3..ed0270d 100644
> --- a/src/kimchi.conf.in
> +++ b/src/kimchi.conf.in
> @@ -24,7 +24,7 @@
>   #ssl_key =
>
>   # Running environment of the server
> -#environment = development
> +#environment = production
>
>   [logging]
>   # Log directory
> diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
> index 68c8a4d..fca32ee 100644
> --- a/src/kimchi/config.py.in
> +++ b/src/kimchi/config.py.in
> @@ -253,7 +253,7 @@ def _get_config():
>       config.set("server", "cherrypy_port", "8010")
>       config.set("server", "ssl_cert", "")
>       config.set("server", "ssl_key", "")
> -    config.set("server", "environment", "development")
> +    config.set("server", "environment", "production")
>       config.add_section("logging")
>       config.set("logging", "log_dir", paths.log_dir)
>       config.set("logging", "log_level", DEFAULT_LOG_LEVEL)




More information about the Kimchi-devel mailing list