mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-12 17:18:40 +00:00
improve server install and rector cs fixes
This commit is contained in:
parent
b13127e447
commit
e85338a0ff
|
|
@ -15,11 +15,15 @@ use Rector\EarlyReturn\Rector\Return_\ReturnBinaryAndToEarlyReturnRector;
|
||||||
use Rector\Set\ValueObject\SetList;
|
use Rector\Set\ValueObject\SetList;
|
||||||
|
|
||||||
return static function (RectorConfig $rectorConfig): void {
|
return static function (RectorConfig $rectorConfig): void {
|
||||||
$rectorConfig->paths([
|
if (\is_dir(__DIR__ . '/phpOMS')) {
|
||||||
__DIR__ . '/Model',
|
$rectorConfig->paths([
|
||||||
__DIR__ . '/Modules',
|
__DIR__ . '/Model',
|
||||||
__DIR__ . '/phpOMS',
|
__DIR__ . '/Modules',
|
||||||
]);
|
__DIR__ . '/phpOMS',
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
$rectorConfig->paths([__DIR__]);
|
||||||
|
}
|
||||||
|
|
||||||
// register a single rule
|
// register a single rule
|
||||||
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export PROMPT_COMMAND='echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade
|
apt-get upgrade
|
||||||
apt-get install git snapd ufw software-properties-common
|
apt-get install git git-lfs snapd ufw software-properties-common
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
|
|
||||||
|
|
@ -601,9 +601,8 @@ sudo -u www-data git submodule foreach "git checkout develop || true"
|
||||||
chown -R www-data /var/www
|
chown -R www-data /var/www
|
||||||
|
|
||||||
# crontab www-data
|
# crontab www-data
|
||||||
# * 4 * * * git -C /var/www/html/jingga_demo submodule foreach git pull; git -C /var/www/html/jingga_demo/setupDemo git pull; /var/www/html/jingga_demo/setupDemo/setup.php; pkill -9 -f wkhtmltoimage;
|
# * 2 * * * git -C /var/www/html/jingga_demo submodule foreach git pull; git -C /var/www/html/jingga_demo/setupDemo git pull; /var/www/html/jingga_demo/setupDemo/setup.php; pkill -9 -f wkhtmltoimage;
|
||||||
# * 2 * * * /var/www/html/tmrank/scripts/run.sh
|
# 0 1 * * * /var/www/html/tmrank/scripts/run.sh > /var/www/html/tmrank/test.log
|
||||||
# 0 2 * * * /var/www/html/tmrank/scripts/run.sh > /var/www/html/tmrank/test.log
|
|
||||||
|
|
||||||
# crontab root
|
# crontab root
|
||||||
# 0 0 1 * * certbot renew --quiet
|
# 0 0 1 * * certbot renew --quiet
|
||||||
Loading…
Reference in New Issue
Block a user