Skip to content

Commit deea4d6

Browse files
committed
fixing cli commands
1 parent 22e836b commit deea4d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bin/cleanup renamed to app/bin/cleanup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* If CLEANUP_DAYS is not set, no files will be cleaned.
1010
*/
1111

12-
require_once __DIR__ . '/../app/vendor/autoload.php';
12+
require_once __DIR__ . '/../vendor/autoload.php';
1313

1414
use League\CLImate\CLImate;
1515
use Dotenv\Dotenv;
@@ -23,7 +23,7 @@ $climate->br();
2323
$cleanupDays = 0;
2424

2525
try {
26-
$dotenv = Dotenv::createImmutable(__DIR__ . '/../app');
26+
$dotenv = Dotenv::createImmutable(__DIR__ . '/..');
2727
$dotenv->load();
2828
$climate->out('Environment variables loaded');
2929
$cleanupDays = $_ENV['CLEANUP_DAYS'];
@@ -33,7 +33,7 @@ try {
3333
}
3434

3535
if (!defined('CACHE_DIR')) {
36-
define('CACHE_DIR', __DIR__ . '/../app/cache');
36+
define('CACHE_DIR', __DIR__ . '/../cache');
3737
}
3838

3939
if ($cleanupDays == 0) {

bin/proxy renamed to app/bin/proxy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* 2. IP:PORT:USER:PASSWORD
1414
*/
1515

16-
require_once __DIR__ . '/../app/vendor/autoload.php';
16+
require_once __DIR__ . '/../vendor/autoload.php';
1717

1818
use League\CLImate\CLImate;
1919
use Dotenv\Dotenv;
@@ -24,7 +24,7 @@ $climate->bold()->out('Proxy List Cache Updater');
2424
$climate->br();
2525

2626
try {
27-
$dotenv = Dotenv::createImmutable(__DIR__ . '/../app');
27+
$dotenv = Dotenv::createImmutable(__DIR__ . '/..');
2828
$dotenv->load();
2929
$climate->out('Environment variables loaded');
3030
} catch (\Exception $e) {
@@ -33,7 +33,7 @@ try {
3333
}
3434

3535
if (!defined('CACHE_DIR')) {
36-
define('CACHE_DIR', __DIR__ . '/../app/cache');
36+
define('CACHE_DIR', __DIR__ . '/../cache');
3737
}
3838

3939
if (!isset($_ENV['PROXY_LIST']) || empty($_ENV['PROXY_LIST'])) {

0 commit comments

Comments
 (0)