capistrano中配置git提示 fatal: could not read Username?
最近研究自动化部署工具capistrano,config/deploy.rb中我配置的git为 http://xxxx:11080/dongbing/group_mng.git,采用http当时访问git。在执行cap deploy后,输入git用户名密码就会提示fatal: could not read Username for 'http://xxxx:11080': No such device or address,这是怎么回事。
aaron@php7:/var/deploy/project1$ cap deploy
triggering start callbacks for `deploy'
* executing `multistage:ensure'
*** Defaulting to `staging'
* executing `staging'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote http://xx.xx.xx.xx:11080/dongbingxu/group_mng.git HEAD"
Username for 'http:///xx.xx.xx.xx:11080': dongbingxu
Password for 'http://dongbingxu@/xx.xx.xx.xx:11080':
command finished in 7459ms
* executing "git clone -q http:///xx.xx.xx.xx:11080/dongbingxu/group_mng.git /var/www/ebills/releases/20160704194320 && cd /var/www/ebills/releases/20160704194320 && git checkout -q -b deploy 73be87e751ad40640866003578c180839cf1675a && (echo 73be87e751ad40640866003578c180839cf1675a > /var/www/ebills/releases/20160704194320/REVISION)"
servers: ["127.0.0.1"]
aaron@127.0.0.1's password:
[127.0.0.1] executing command
** [127.0.0.1 :: err] fatal: could not read Username for 'http:///xx.xx.xx.xx:11080': No such device or address
command finished in 282ms
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/ebills/releases/20160704194320; true"
servers: ["127.0.0.1"]
[127.0.0.1] executing command
command finished in 19ms
failed: "sh -c 'git clone -q http:///xx.xx.xx.xx:11080/dongbingxu/group_mng.git /var/www/ebills/releases/20160704194320 && cd /var/www/ebills/releases/20160704194320 && git checkout -q -b deploy 73be87e751ad40640866003578c180839cf1675a && (echo 73be87e751ad40640866003578c180839cf1675a > /var/www/ebills/releases/20160704194320/REVISION)'" on 127.0.0.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论