1 Star 0 Fork 4

baitongda/yike.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deploy.php 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
overtrue 提交于 2018-09-23 19:03 . repo url.
<?php
namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'yikeio client');
// Project repository
set('repository', 'git@github.com:overtrue/yike.io.git');
// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true);
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('default_timeout', 1600);
set('deploy_path', '/www/yike.io');
set('writable_use_sudo', true);
set('clear_use_sudo', true);
set('cleanup_use_sudo', true);
set('http_group', 'www-data');
set('writable_mode', 'chown');
set('default_stage', 'production');
set('keep_releases', 2);
set('shared_files', [
'.env.production',
]);
host('yike.io')
->stage('production')
->user('deployer')
->multiplexing(true);
desc('Run build.');
task('npm:install-and-compile', function(){
// if (has('previous_release')) {
// run('cp -R {{previous_release}}/node_modules {{release_path}}/node_modules');
// }
within('{{release_path}}', function () {
// run('npm install --registry=http://registry.npm.taobao.org ');
run('npm install');
run('npm run build');
});
});
// Tasks
desc('Deploy your project');
task('deploy', [
'deploy:info',
'deploy:prepare',
'deploy:lock',
'deploy:release',
'deploy:update_code',
'deploy:shared',
'npm:install-and-compile',
'deploy:writable',
'deploy:clear_paths',
'deploy:symlink',
'deploy:unlock',
'cleanup',
'success'
]);
// [Optional] If deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/baiotngda/yike.io.git
git@gitee.com:baiotngda/yike.io.git
baiotngda
yike.io
yike.io
master

搜索帮助