環(huán)境是centos7 虛擬機 運行php start.php start
后
去更新代碼, 但是并沒有重新加載.
圖中的reload是再另外的鏈接執(zhí)行php start.php reload
,執(zhí)行以后就重新加載了,但是不是自動加載,每次需要手動,想請教下是什么問題.
配置文件
:
'monitor' => [
'handler' => process\Monitor::class,
'reloadable' => true, // true or false 都不行
'constructor' => [
// Monitor these directories
'monitor_dir' => [
app_path(),
config_path(),
base_path() . '/process',
base_path() . '/support',
base_path() . '/resource',
base_path() . '/.env',
],
// Files with these suffixes will be monitored
'monitor_extensions' => [
'php', 'html', 'htm', 'env'
]
]
],