Bug 13799: Change Mojolicious default mode to 'production'

This avoid getting a debug page when URL is wrong.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2015-10-07 11:00:45 +02:00 committed by Tomas Cohen Arazi
parent 5533d65801
commit 93a88eaaf6

View file

@ -119,6 +119,8 @@
Options +ExecCGI +FollowSymlinks
AddHandler cgi-script .pl
SetEnv MOJO_MODE "production"
RewriteEngine On
RewriteBase /api/
RewriteCond %{REQUEST_FILENAME} !-f
@ -236,6 +238,8 @@
Options +ExecCGI +FollowSymlinks
AddHandler cgi-script .pl
SetEnv MOJO_MODE "production"
RewriteEngine On
RewriteBase /api/
RewriteCond %{REQUEST_FILENAME} !-f
@ -261,6 +265,8 @@
# Options +ExecCGI +FollowSymlinks
# AddHandler cgi-script .pl
#
# SetEnv MOJO_MODE "production"
#
# RewriteEngine on
#
# RewriteRule ^api/(.*) $1 [L]