|
@@ -1,6 +1,11 @@
|
|
|
<?php
|
|
|
|
|
|
$lowerDir = realpath(__DIR__."/../../smartLEDZ"); // read层·原始文件
|
|
|
+$mergedDir = realpath(__DIR__."/../../smartLEDZ_Merged"); // 读写·数据交互层(read层 + write层) - [ 程序运行在此 ]
|
|
|
+$app_path = $lowerDir; // 当前运行的项目主目录
|
|
|
+if(is_dir($mergedDir)){ // 存在overlay
|
|
|
+ $app_path = $mergedDir;
|
|
|
+}
|
|
|
|
|
|
// +---------------
|
|
|
// | Set.php
|
|
@@ -49,4 +54,4 @@ if($isModify == true){
|
|
|
}
|
|
|
|
|
|
// 重启Events
|
|
|
-exec("php-cli $lowerDir/workerman/Server.php restart -d");
|
|
|
+exec("php-cli $app_path/workerman/Server.php restart -d");
|