update to 2.0.0-b8 version

fix environment conflict and remove custom commands
This commit is contained in:
jerry
2020-12-20 18:49:03 +08:00
parent 42d9c97711
commit bc0bb9b6b0
4 changed files with 21 additions and 36 deletions

View File

@@ -48,6 +48,11 @@ class Framework
include_once "global_defines.php";
ZMAtomic::init();
ZMConfig::setDirectory(DataProvider::getWorkingDir() . '/config');
ZMConfig::setEnv($args["env"] ?? "");
if (ZMConfig::get("global") === false) {
die ("Global config load failed: " . ZMConfig::$last_error . "\nPlease init first!\n");
}
try {
ManagerGM::init(ZMConfig::get("global", "swoole")["max_connection"] ?? 2048, 0.5, [
[