Cambio para independizar de servidor
This commit is contained in:
@ -3,6 +3,9 @@ use DI\Bridge\Slim\Bridge;
|
||||
|
||||
include_once 'composer.php';
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
|
||||
$dotenv->load();
|
||||
|
||||
$container_builder = new DI\ContainerBuilder();
|
||||
|
||||
$folders = [
|
||||
@ -42,7 +45,4 @@ foreach ($folders as $folder) {
|
||||
}
|
||||
}
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable($container->get('folders.base'));
|
||||
$dotenv->load();
|
||||
|
||||
include_once implode(DIRECTORY_SEPARATOR, [$app->getContainer()->get('folders.routes'), 'router.php']);
|
||||
|
@ -9,5 +9,6 @@ return [
|
||||
'{folders.resources}',
|
||||
'routes'
|
||||
])),
|
||||
'urls.base' => '/provm/raby'
|
||||
'base_url' => getenv('BASE_URL'),
|
||||
'urls.base' => getenv('URLS_BASE')
|
||||
];
|
||||
|
@ -77,10 +77,9 @@ return [
|
||||
'email.recepcion' => 'recepcion@notariaraby.cl',
|
||||
'email.administrativo' => 'vwielandt@notariaraby.cl',
|
||||
'email' => [
|
||||
'host' => 'smtp.notariaraby.cl',
|
||||
'username' => '',
|
||||
'password' => '',
|
||||
'secure' => 'ssl'
|
||||
'host' => 'mail.notariaraby.cl',
|
||||
'username' => 'contacto@notariaraby.cl',
|
||||
'password' => 'ntrco2020'
|
||||
],
|
||||
'scripts' => [
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js',
|
||||
|
@ -11,7 +11,7 @@ return [
|
||||
null,
|
||||
[
|
||||
'urls' => (object) [
|
||||
'base' => $container->get('urls.base'),
|
||||
'base' => $container->get('base_url'),
|
||||
'assets' => (object) [
|
||||
'images' => $container->get('urls.images'),
|
||||
'styles' => $container->get('urls.styles'),
|
||||
@ -60,5 +60,11 @@ return [
|
||||
Nette\Mail\SmtpMailer::class => function(Container $c) {
|
||||
return new Nette\Mail\SmtpMailer($c->get('email'));
|
||||
},
|
||||
Nette\Mail\FallbackMailer::class => function(Container $c) {
|
||||
return new Nette\Mail\FallbackMailer([
|
||||
$c->get(Nette\Mail\SmtpMailer::class),
|
||||
$c->get(Nette\Mail\SendmailMailer::class)
|
||||
]);
|
||||
},
|
||||
Nette\Mail\Message::class => DI\create()
|
||||
];
|
||||
|
Reference in New Issue
Block a user