A priori j'ai réussi à configurer git et à initialiser mon repository
remote.
Maintenant j'ai un problème pour déployer avec webistrano/capistrano.

Au départ j'avais un message qui me disait   et a priori en cherchant
il m'a semblé voir que en utilisant la version 2.5.2 de capistrano ça
marchait. Mais j'ai un message d'erreur à l'execution avec git
annonçant un code retour 32512 dont je n'ai pas trouvé la signication.

executing locally: "git ls-remote [email protected]:notreimmeuble-
git.git master"
*** Could not save revision: Command git ls-remote
[email protected]:notreimmeuble-git.git master returned status code
32512
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote
[email protected]:notreimmeuble-git.git master"
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/notreimmeuble/www/integration/releases/
20100106131835; true"
    servers: ["ssh.alwaysdata.com"]
 ** [deploy:update_code] exception while rolling back:
Capistrano::ConnectionError, connection failed for: ssh.alwaysdata.com
(NoMethodError: undefined method `configuration_for' for
Net::SSH:Module)
*** Command git ls-remote [email protected]:notreimmeuble-git.git
master returned status code 32512



Pour info voici le capfile généré avec webistrano
load 'deploy'

# ================================================================
# ROLES
# ================================================================


    role :app, "ssh.alwaysdata.com"

    role :db, "ssh.alwaysdata.com", {:primary=>true}

    role :web, "ssh.alwaysdata.com"


# ================================================================
# VARIABLES
# ================================================================

# Webistrano defaults
  set :webistrano_project, "notre_immeuble"
  set :webistrano_stage, "integration"


  set :application, "notreimmeuble"

  set :deploy_to, "/home/notreimmeuble/www/integration/"

  set :deploy_via, :export

  set :keep_releases, "2"

  set :password, "xxxxxx"

  set :rails_env, "integration"

  set :remote, "origin"

  set :repository, "[email protected]:notreimmeuble-git.git"

  set :runner, "user to run as with sudo"

  set :scm, "git"

  set :scm_passphrase, "xxxxx"

  set :scm_password, "xxxxxx"

  set :scm_username, "xxxxx"

  set :use_sudo, false

  set :user, "notreimmeuble"



  set(:branch) do
    Capistrano::CLI.ui.ask "Please enter 'branch': "
  end


# ================================================================
# TEMPLATE TASKS
# ================================================================

        # allocate a pty by default as some systems have problems
without
        default_run_options[:pty] = true

        # set Net::SSH ssh options through normal variables
        # at the moment only one SSH key is supported as arrays are
not
        # parsed correctly by Webistrano::Deployer.type_cast (they end
up as strings)
        [:ssh_port, :ssh_keys].each do |ssh_opt|
          if exists? ssh_opt
            logger.important("SSH options: setting #{ssh_opt} to: #
{fetch(ssh_opt)}")
            ssh_options[ssh_opt.to_s.gsub(/ssh_/, '').to_sym] = fetch
(ssh_opt)
          end
        end



-- 
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de 
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse 
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse 
[email protected]

Répondre à