首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >部署器部署失败

部署器部署失败
EN

Stack Overflow用户
提问于 2017-11-22 18:26:29
回答 1查看 2.2K关注 0票数 2

我在部署部署时遇到了问题,这是我第一次使用部署工具。我的老师已经为它的工作做了一个指导,但是,我还没能做好部署。所以如果有人能告诉我我做错了什么,请告诉我。下面是我的计算机和我的设置的所有规范:

电脑:

Windows 10家庭操作系统 制造商ASUSTek Computer Inc. Model E403SA 处理器英特尔(R)奔腾(R) CPU N3700 @ 1.60GHz 1.60 GHz RAM 4.0GB 64位操作系统,基于x64处理器

. .ssh/config文件:

代码语言:javascript
运行
复制
Host xxxxx
 ControlMaster no
 Hostname ssh.xxxxx.xx
 User xxxxxx_xxx

请注意,我添加了ControlMaster,没有,因为我读到的问题可能是ssh复用,但它,但我得到了同样的错误,与它和不.

deploy.php文件(在项目根目录中):

代码语言:javascript
运行
复制
<?php
namespace Deployer;

require 'recipe/common.php';

// Project name
set('application', 'blog');

// Project repository
set('repository', 'git@github.com:xxxxxxx/xxxxxxxxxxxxxxxx.git');

// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true); 

// Shared files/dirs between deploys 
set('shared_files', ['config/dbinfo.json']);
set('shared_dirs', []);

// Writable dirs by web server 
set('writable_dirs', []);


// Hosts

host('ssh.xxxxxx.xx')
    ->set('deploy_path', '~/xxxx.xxxxxxxxxxxxx.xxxx.xxxxxxx')
    ->user('xxxxxx_xxx')
    ->port(22);    


// Tasks

desc('Deploy your project');
task('deploy:custom_webroot', function() {
    run("cd {{deploy_path}} && ln -sfn {{release_path}} public_html/xxxxxxxxxxxx");
});
task('deploy', [
    'deploy:info',
    'deploy:prepare',
    'deploy:lock',
    'deploy:release',
    'deploy:update_code',
    'deploy:shared',
    'deploy:writable',
    'deploy:clear_paths',
    'deploy:symlink',
    'deploy:unlock',
    'cleanup',
    'success'
]);

// [Optional] If deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
after('deploy', 'deploy:custom_webroot');

当我试图在项目的根中运行dep部署时,我得到了流动的输出:

代码语言:javascript
运行
复制
$ dep deploy
✈︎ Deploying master on ssh.xxxxxx.xx
➤ Executing task deploy:prepare
✔ Executing task deploy:failed
➤ Executing task deploy:unlock


  [Deployer\Exception\RuntimeException]                                         
  The command "rm -f ~/blog.xxxxxxxxxxx.xxxx.xxxxx/.dep/deploy.lock" failed.
  Exit Code: -1 (Unknown error)                                                 
  Host Name: ssh.xxxxx.xx                                                      
  ================                                                              
  mm_send_fd: sendmsg(2): Broken pipe                                           
  mux_client_request_session: send fds failed                                   

任何帮助都将不胜感激!

EN

回答 1

Stack Overflow用户

发布于 2022-04-29 17:08:11

尝试使用dep部署:解锁,然后正常使用部署。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47441587

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档