3.8.1
This commit is contained in:
27
bin/phalapi-plugin-prepare.php
Normal file
27
bin/phalapi-plugin-prepare.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* 插件环境预热
|
||||
* @author dogstar 20200312
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../public/init.php';
|
||||
|
||||
$folder = array(
|
||||
'config',
|
||||
'plugins',
|
||||
'data',
|
||||
'public/portal/page',
|
||||
'public/portal',
|
||||
'src/app/Api',
|
||||
'src/app/Domain',
|
||||
'src/app/Model',
|
||||
'src/app/Common',
|
||||
'src/portal/Api',
|
||||
);
|
||||
|
||||
foreach ($folder as $it) {
|
||||
chmod(API_ROOT . '/' . $it, 0777);
|
||||
}
|
||||
|
||||
|
||||
echo "插件安装环境已预热完毕!\n";
|
||||
|
||||
Reference in New Issue
Block a user