Skip to content

Commit

Permalink
[Maintenance] Add staging environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Sep 11, 2017
1 parent b891e0a commit c1e6b56
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/config/config_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

imports:
- { resource: "config.yml" }

monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

doctrine:
dbal:
dbname: "%database_name%_staging"

swiftmailer:
disable_delivery: true
30 changes: 30 additions & 0 deletions web/app_staging.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

use Symfony\Component\HttpFoundation\Request;

/*
* Sylius front controller.
* Staging environment.
*/

require __DIR__.'/../vendor/autoload.php';

$kernel = new AppKernel('staging', false);

$request = Request::createFromGlobals();

$response = $kernel->handle($request);
$response->send();

$kernel->terminate($request, $response);

0 comments on commit c1e6b56

Please sign in to comment.