首页 > capistrano中配置git提示 fatal: could not read Username?

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
【热门文章】
【热门文章】