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');