add multi-environment configuration support

This commit is contained in:
ghost 2023-09-13 16:35:02 +03:00
parent 74e7035123
commit 073619b461
16 changed files with 62 additions and 54 deletions

View file

@ -8,9 +8,8 @@ if (false === sem_acquire($semaphore, true))
exit (PHP_EOL . 'yggtracker.crontab.export.feed process locked by another thread.' . PHP_EOL);
}
// Load system dependencies
require_once(__DIR__ . '/../../config/app.php');
require_once(__DIR__ . '/../../library/database.php');
// Bootstrap
require_once __DIR__ . '/../../config/bootstrap.php';
// Init Debug
$debug =

View file

@ -1,3 +1,6 @@
<?php
// Bootstrap
require_once __DIR__ . '/../../config/bootstrap.php';
// @TODO implementation for active API sync using push notifications from memcache

View file

@ -8,10 +8,8 @@ if (false === sem_acquire($semaphore, true)) {
exit (PHP_EOL . 'yggtracker.crontab.scrape process locked by another thread.' . PHP_EOL);
}
// Load system dependencies
require_once(__DIR__ . '/../config/app.php');
require_once(__DIR__ . '/../library/database.php');
require_once(__DIR__ . '/../library/scrapeer.php');
// Bootstrap
require_once __DIR__ . '/../config/bootstrap.php';
// Init Debug
$debug = [

View file

@ -8,9 +8,8 @@ if (false === sem_acquire($semaphore, true)) {
exit (PHP_EOL . 'yggtracker.crontab.sitemap process locked by another thread.' . PHP_EOL);
}
// Load system dependencies
require_once(__DIR__ . '/../config/app.php');
require_once(__DIR__ . '/../library/database.php');
// Bootstrap
require_once __DIR__ . '/../config/bootstrap.php';
// Init Debug
$debug = [