From 1ebc21d83b9a8494371bcb55a1dc237311e5bfbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Mon, 10 Jan 2022 15:29:00 +0800 Subject: [PATCH] Update --- deploy.php | 79 ------------------------------------------------------ 1 file changed, 79 deletions(-) delete mode 100644 deploy.php diff --git a/deploy.php b/deploy.php deleted file mode 100644 index 5ddbf504..00000000 --- a/deploy.php +++ /dev/null @@ -1,79 +0,0 @@ -user('deployer') - ->port(22) - ->identityFile('~/.ssh/deployer_rsa') - ->forwardAgent(true) - ->multiplexing(true) - ->addSshOption('UserKnownHostsFile', '/dev/null') - ->addSshOption('StrictHostKeyChecking', 'no') - ->stage('test') - ->set('branch', 'develop') - ->set('deploy_path', '/www/wwwroot/test.zichunsheng.cn'); - - -// 生产环境 - -host('production') - ->hostname('47.108.202.152') - ->user('deployer') - ->port(22) - ->identityFile('~/.ssh/deployer_rsa') - ->forwardAgent(true) - ->multiplexing(true) - ->addSshOption('UserKnownHostsFile', '/dev/null') - ->addSshOption('StrictHostKeyChecking', 'no') - ->stage('production') - ->set('branch', 'master') - ->set('deploy_path', '/www/wwwroot/api.zichunsheng.cn'); - -host('admin') - ->hostname('47.108.202.152') - ->user('deployer') - ->port(22) - ->identityFile('~/.ssh/deployer_rsa') - ->forwardAgent(true) - ->multiplexing(true) - ->addSshOption('UserKnownHostsFile', '/dev/null') - ->addSshOption('StrictHostKeyChecking', 'no') - ->stage('admin') - ->set('branch', 'master') - ->set('deploy_path', '/www/wwwroot/admin.zichunsheng.cn'); -// Tasks - -// 如果发布失败,自动解锁 -after('deploy:failed', 'deploy:unlock'); -// 发布完成后重启 PHP-FPM -after('success', 'php:restart'); - -// Migrate database before symlink new release. -before('deploy:symlink', 'artisan:migrate'); - -desc('重启 PHP-FPM 进程'); -task('php:restart', function () { - run('sudo systemctl restart php8.0-fpm.service'); -})->onStage(['production', 'admin']);