mirror of
https://github.com/kevachat/npsapp.git
synced 2025-01-14 09:07:59 +00:00
add multi-host config support
This commit is contained in:
parent
eb52f6c2d9
commit
cf4496bc55
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
/vendor/
|
||||
/composer.lock
|
||||
/config.json
|
||||
/config/*
|
||||
!/config/example.json
|
||||
|
||||
/composer.lock
|
@ -11,9 +11,12 @@ $config = json_decode(
|
||||
file_get_contents(
|
||||
__DIR__ .
|
||||
DIRECTORY_SEPARATOR . '..'.
|
||||
DIRECTORY_SEPARATOR . 'config.json'
|
||||
DIRECTORY_SEPARATOR . 'config'.
|
||||
DIRECTORY_SEPARATOR . (
|
||||
isset($argv[1]) ? $argv[1] : 'example.json'
|
||||
)
|
||||
)
|
||||
);
|
||||
); if (!$config) exit;
|
||||
|
||||
// Init session
|
||||
$session = [];
|
||||
|
Loading…
Reference in New Issue
Block a user