forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maintenance] Add staging environment
- Loading branch information
1 parent
b891e0a
commit c1e6b56
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |