代码拉取完成,页面将自动刷新
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Project name
set('application', 'huan-info-sys');
// Project repository
set('repository', 'https://gitee.com/subowen_admin/huan-info-sys.git');
// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true);
set('default_stage', 'local');
// Shared files/dirs between deploys
add('shared_files', []);
add('shared_dirs', []);
// Writable dirs by web server
add('writable_dirs', []);
// Hosts
host('118.24.243.11')
->user('chenshengwen')
->stage('prod')
->port('56413')
->set('deploy_path', '/hwdata/www/{{application}}');
localhost()
->stage('local')
->roles('test', 'build');
// Tasks
task('git:push', function() {
writeln('start git push task');
run('git add .');
run('git commit -m "auto commit by deploy"');
run('git push origin master');
});
task('build', function () {
run('cd {{release_path}} && build');
});
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
// Migrate database before symlink new release.
before('deploy:symlink', 'artisan:migrate');
before('artisan:migrate', 'artisan:route:cache');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。