blob: fc7de1640772e06451dd6666f99987d54f38b279 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting(E_ALL);
// Pull in bootstrap
require(realpath(dirname(__FILE__) . "/../bootstrap.php"));
// Load a config
try {
$loader = new App\Config\Loader();
$config = $loader->getConfig();
} catch (Exception $e) {
echo $e->getMessage() . "\n";
exit;
}
// Set up siteroot
define('DIPPER_ROOT', realpath(dirname(__FILE__) . "/../") . '/');
define('SITES_ROOT', $config['SITES_ROOT']);
define('CONFIG_ROOT', $config['CONFIG_ROOT']);
new App\Script\Console;
|