setting up local/pprod/prod

This commit is contained in:
Christophe LATOUR 2017-07-24 16:02:32 +02:00
parent d6806127b9
commit a9a530c440
5 changed files with 57 additions and 0 deletions

15
config/api.local.php Normal file
View File

@ -0,0 +1,15 @@
<?php
return array(
'aliases' => [
'models' => [
'ApiTag' => 'App\Models\Tag',
'ApiCart' => 'App\Models\Cart',
'ApiCarrier' => 'App\Models\Carrier',
'ApiOrderDetail' => 'App\Models\Order\OrderDetail'
],
'controllers' => [
'ApiBaseController' => 'App\Web\Controllers\Controller',
],
],
);

15
config/api.pprod.php Normal file
View File

@ -0,0 +1,15 @@
<?php
return array(
'aliases' => [
'models' => [
'ApiTag' => 'App\Models\Tag',
'ApiCart' => 'App\Models\Cart',
'ApiCarrier' => 'App\Models\Carrier',
'ApiOrderDetail' => 'App\Models\Order\OrderDetail'
],
'controllers' => [
'ApiBaseController' => 'App\Web\Controllers\Controller',
],
],
);

15
config/api.prod.php Normal file
View File

@ -0,0 +1,15 @@
<?php
return array(
'aliases' => [
'models' => [
'ApiTag' => 'App\Models\Tag',
'ApiCart' => 'App\Models\Cart',
'ApiCarrier' => 'App\Models\Carrier',
'ApiOrderDetail' => 'App\Models\Order\OrderDetail'
],
'controllers' => [
'ApiBaseController' => 'App\Web\Controllers\Controller',
],
],
);

7
config/env.prod.php Normal file
View File

@ -0,0 +1,7 @@
<?php
putenv('APP_ENV=prod');
putenv('APP_DEBUG=false');
putenv('APP_KEY=e!MV*C9N*B5&#FJbyf*2c8m5QOJOGeQ6&8eCL_qo');
putenv('APP_TIMEZONE=UTC');
putenv('PRESTASHOP_AUTOLOAD=/../../config/autoload_lumen.php');
putenv('PRESTASHOP_CONFIG=/../../config/config.inc.php');

5
config/wsse.local.php Normal file
View File

@ -0,0 +1,5 @@
<?php
return [
'ttl' => 0,
]