Ruby on rails 从Git HTTP repo部署Capistrano
有没有人有过通过HTTP从Git存储库部署Capistrano的经验 以下deploy.rb不工作:Ruby on rails 从Git HTTP repo部署Capistrano,ruby-on-rails,git,http,deployment,capistrano,Ruby On Rails,Git,Http,Deployment,Capistrano,有没有人有过通过HTTP从Git存储库部署Capistrano的经验 以下deploy.rb不工作: set :repository, 'http://git.repository-domain.com:4442/git/repo.git' set :scm_username, "git_username" set :scm_password, "git_password" set :scm, :git 如果您按以下方式传入存储库,则它将起作用: set :repository, 'htt
set :repository, 'http://git.repository-domain.com:4442/git/repo.git'
set :scm_username, "git_username"
set :scm_password, "git_password"
set :scm, :git
如果您按以下方式传入存储库,则它将起作用:
set :repository, 'http://git_username:git_password@git.repository-domain.com:4442/git/repo.git'
后者只在用户名或密码没有特殊字符时才起作用。对这些字符进行URL编码将导致失败
更新:有关问题的更精确描述,请访问Capistrano Git。HTTPS身份验证将在Capistrano 3中解决,您可以在其中设置存储库及其凭据:
set :repo_url, 'https://git.repository-domain.com:4442/git/repo.git'
set :git_http_username, 'username'
set :git_http_password, 'password'
此外,在Capistrano 3中已经起作用的是存储库URL中的用户名:密码,即使密码包含特殊字符:
set :repo_url, 'https://ain:3490jL?a@git.repository-domain.com:4442/git/repo.git'
有关更多最新信息,请参见为什么!这让我非常不安!;)你是说HTTP上的回购协议?HTTP位。你为什么不能使用https?可能吧。但我从未使用cap over https部署过。安装gems时没有问题。我想知道您是否可以尝试不使用scm_用户名和密码或更改为HTTPS。如果您使用VPN服务器,我有如何通过ssh协议部署的解决方案。如果你需要,我可以回答。它是git_http_用户名和git_http_密码,根据