1 Star 0 Fork 0

视迅速达/HuanInfoSys

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy.php 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
陈圣文 提交于 2020-09-04 15:49 . auto commit by deploy
<?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');
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/subowen_admin/huan-info-sys.git
git@gitee.com:subowen_admin/huan-info-sys.git
subowen_admin
huan-info-sys
HuanInfoSys
master

搜索帮助