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