打包二進制很好用,忽略了.env直接就可以放在同目錄下自動引用了
我繼續(xù)忽略了app/home/view目錄想在外部允許修改模板,然后把app目錄放在bin同目錄下,訪問報錯
或者能否view直接使用public下的html,因為可以通過public_path來把public外置出去
use support\Request;
return [
'debug' => env('APP_DEBUG', true),
'error_reporting' => E_ALL,
'default_timezone' => 'Asia/Shanghai',
'request_class' => Request::class,
'public_path' => base_path(false) . DIRECTORY_SEPARATOR . 'public',
'runtime_path' => base_path(false) . DIRECTORY_SEPARATOR . 'runtime',
'controller_suffix' => 'Controller',
'controller_reuse' => false,
];
Exception: template not exists:phar:///www/wwwroot/demo.com/build/ripanel.bin/app/home/view/index/index.html in phar:///www/wwwroot/demo.com/build/ripanel.bin/vendor/topthink/think-template/src/Template.php:1238