Local settings
This commit is contained in:
@ -11,6 +11,6 @@ return [
|
|||||||
'controllers' => '{locations.app}/Controller',
|
'controllers' => '{locations.app}/Controller',
|
||||||
'money' => 'provm.cl/optimus/money',
|
'money' => 'provm.cl/optimus/money',
|
||||||
'api' => '192.168.1.100/intranet/api',
|
'api' => '192.168.1.100/intranet/api',
|
||||||
'api_url' => '/api'
|
'api_url' => '/incoviba/api'
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
use Psr\Container\ContainerInterface as Container;
|
use Psr\Container\ContainerInterface as Container;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
'base_url' => DI\decorate(function($prev, Container $c) {
|
||||||
|
return $prev . '/api';
|
||||||
|
}),
|
||||||
'locations' => DI\decorate(function($prev, Container $c) {
|
'locations' => DI\decorate(function($prev, Container $c) {
|
||||||
$arr = (array) $prev;
|
$arr = (array) $prev;
|
||||||
$arr['cache'] = $prev->base . '/cache';
|
$arr['cache'] = $prev->base . '/cache';
|
||||||
|
@ -30,7 +30,7 @@ foreach ($files as $file) {
|
|||||||
|
|
||||||
$container = $builder->build();
|
$container = $builder->build();
|
||||||
$app = Bridge::create($container);
|
$app = Bridge::create($container);
|
||||||
$app->setBasePath('/api');
|
$app->setBasePath($app->getContainer()->get('base_url'));
|
||||||
$app->addRoutingMiddleware();
|
$app->addRoutingMiddleware();
|
||||||
|
|
||||||
foreach ($folders as $folder) {
|
foreach ($folders as $folder) {
|
||||||
|
@ -10,7 +10,7 @@ return [
|
|||||||
'databases' => function() {
|
'databases' => function() {
|
||||||
$arr = [
|
$arr = [
|
||||||
'mysql' => [
|
'mysql' => [
|
||||||
'host' => 'db',
|
'host' => 'localhost',
|
||||||
//'port' => 3306,
|
//'port' => 3306,
|
||||||
'database' => 'incoviba',
|
'database' => 'incoviba',
|
||||||
'username' => 'incoviba',
|
'username' => 'incoviba',
|
||||||
|
3
setup/env/config.php
vendored
3
setup/env/config.php
vendored
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'debug' => false,
|
'debug' => false,
|
||||||
'benchmark' => false
|
'benchmark' => false,
|
||||||
|
'base_url' => '/incoviba'
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user