Re: [capistrano] Deployment from Git on HTTPS fails to use scm_username, scm_password

868 views
Skip to first unread message

Lee Hambley

unread,
Feb 12, 2013, 10:22:49 AM2/12/13
to capis...@googlegroups.com
Maybe you forgot to ask your question.



On 12 February 2013 16:12, Ain Tohvri <ain.t...@gmail.com> wrote:
Repository: https://…:4442/git/repo.git
deploy.rb:

require "bundler/capistrano"

set :application, "AppName"

set :scm_username, "username"
set :scm_password, "password"
set :scm, :git
set :branch, "master"

set :repository,  " https://…:4442/git/repo.git"

set :deploy_via, "copy"
set :copy_cache, false
set :copy_exclude, [".git*", ".DS_Store", "nbproject"]

ssh_options[:forward_agent] = true
set :use_sudo, false
set :keep_releases, 5

task :production do
  set :user, "root"
  set :password, "password"
  set :deploy_to, "/var/www/passenger.site"
  role :web, "domain.com"
  role :app, "domain.com"
  role :db,  "domain.com", :primary => true
  ssh_options[:port] = 1756
  set :env, "production"
end

namespace :deploy do

  task :restart, :roles => :app, :except => { :no_release => true } do
    run "cd #{current_path}; bundle exec rake assets:precompile"
    run "touch #{File.join(current_path,'tmp','restart.txt')}"
  end

end

ruby 1.8.7 (2012-10-12 patchlevel 371) [i686-darwin11]
Capistrano v2.12.0
rails 3.2.11

--
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
---
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ain Tohvri

unread,
Mar 25, 2013, 5:11:56 AM3/25/13
to capis...@googlegroups.com
The question is obviously about the deployment ignoring scm_username and scm_password credentials. There's also a ticket at https://github.com/capistrano/capistrano/issues/384

Rafa García

unread,
Mar 25, 2013, 8:05:43 AM3/25/13
to capis...@googlegroups.com
It seems to be replied/solved in this ticket. 

I just anotate here for the future:

You should use the method user:pass...@your-host.de:4222 - Git doesn't like giving http credentials.

Regards



2013/3/25 Ain Tohvri <ain.t...@gmail.com>
Reply all
Reply to author
Forward
0 new messages