我在部署部署时遇到了问题,这是我第一次使用部署工具。我的老师已经为它的工作做了一个指导,但是,我还没能做好部署。所以如果有人能告诉我我做错了什么,请告诉我。下面是我的计算机和我的设置的所有规范:
电脑:
Windows 10家庭操作系统 制造商ASUSTek Computer Inc. Model E403SA 处理器英特尔(R)奔腾(R) CPU N3700 @ 1.60GHz 1.60 GHz RAM 4.0GB 64位操作系统,基于x64处理器
. .ssh/config文件:
Host xxxxx
ControlMaster no
Hostname ssh.xxxxx.xx
User xxxxxx_xxx
请注意,我添加了ControlMaster,没有,因为我读到的问题可能是ssh复用,但它,但我得到了同样的错误,与它和不.
deploy.php文件(在项目根目录中):
<?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部署时,我得到了流动的输出:
$ 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
任何帮助都将不胜感激!
发布于 2022-04-29 17:08:11
尝试使用dep部署:解锁,然后正常使用部署。
https://stackoverflow.com/questions/47441587
复制相似问题