From 365919306bf16cfbc0126623e1fd2a2f701546b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Thu, 9 Dec 2021 17:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 deploy.php diff --git a/deploy.php b/deploy.php new file mode 100644 index 00000000..89354083 --- /dev/null +++ b/deploy.php @@ -0,0 +1,45 @@ +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'); + +// Tasks + +// [Optional] if deploy fails automatically unlock. +after('deploy:failed', 'deploy:unlock'); + +// Migrate database before symlink new release. + +before('deploy:symlink', 'artisan:migrate');