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