mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix #1563 : Explicitely declare the default environment to be Application::ENV_PROD
This commit is contained in:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user