Fix #1563 : Explicitely declare the default environment to be Application::ENV_PROD

This commit is contained in:
Romain Neutron
2013-11-04 12:54:30 +01:00
parent 2f1fa857cd
commit ed3f31b01d
5 changed files with 8 additions and 4 deletions

View File

@@ -9,12 +9,14 @@
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . '/../lib/autoload.php';
ErrorHandler::register();
$environment = Application::ENV_PROD;
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';
$app->run();

View File

@@ -9,13 +9,14 @@
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . "/../lib/autoload.php";
ErrorHandler::register();
$environment = 'prod';
$environment = Application::ENV_PROD;
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
$app->run();

View File

@@ -9,13 +9,14 @@
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . "/../lib/autoload.php";
ErrorHandler::register();
$environment = 'dev';
$environment = Application::ENV_DEV;
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';
$app->run();