2009-08-17 7 views
0

C'est la première fois que j'essaie de déployer une application Rails avec Capistrano.Capistrano: Impossible de chdir ou pas une archive git

Voici ce qui se passe quand je l'appelle le déploiement: migrations:

$ cap deploy:migrations 
    * executing `deploy:migrations' 
    * executing `deploy:update_code' 
    updating the cached checkout on all servers 
    executing locally: "git ls-remote [email protected]:/home/collimarco/git/foto-fiori.git master" 
[email protected]'s password: 
    * executing "if [ -d /home/collimarco/foto-fiori.com/shared/cached-copy ]; then cd /home/collimarco/foto-fiori.com/shared/cached-copy && git fetch origin && git reset --hard b38d7ae360a23c1660baceef571667b79e19769b && git clean -d -x -f; else git clone --depth 1 [email protected]:/home/collimarco/git/foto-fiori.git /home/collimarco/foto-fiori.com/shared/cached-copy && cd /home/collimarco/foto-fiori.com/shared/cached-copy && git checkout -b deploy b38d7ae360a23c1660baceef571667b79e19769b; fi" 
    servers: ["foto-fiori.com"] 
Password: 
    [foto-fiori.com] executing command 
** [foto-fiori.com :: out] Initialized empty Git repository in /mnt/local/home/collimarco/foto-fiori.com/shared/cached-copy/.git/ 
** [foto-fiori.com :: out] [email protected]'s password: 
Password: 
** [foto-fiori.com :: out] 
** [foto-fiori.com :: out] fatal: '/home/collimarco/git/foto-fiori.git': unable to chdir or not a git archive 
** [foto-fiori.com :: out] fatal: The remote end hung up unexpectedly 
    command finished 
failed: "sh -c 'if [ -d /home/collimarco/foto-fiori.com/shared/cached-copy ]; then cd /home/collimarco/foto-fiori.com/shared/cached-copy && git fetch origin && git reset --hard b38d7ae360a23c1660baceef571667b79e19769b && git clean -d -x -f; else git clone --depth 1 [email protected]:/home/collimarco/git/foto-fiori.git /home/collimarco/foto-fiori.com/shared/cached-copy && cd /home/collimarco/foto-fiori.com/shared/cached-copy && git checkout -b deploy b38d7ae360a23c1660baceef571667b79e19769b; fi'" on foto-fiori.com

Le répertoire /home/collimarco/git/foto-fiori.git existe et il est un dépôt --bare! Alors quel est le problème? Dreamhost migrait mon site vers un autre serveur.

+1

Avez-vous essayé d'exécuter les commandes que Capistrano essaie d'exécuter à partir du serveur dans une session SSH? Plus précisément, cd /home/collimarco/foto-fiori.com/shared/cached-copy&& git fetch origine && git reset --hard b38d7ae360a23c1660baceef571667b79e19769b && git clean -d -x -f; –

Répondre

Questions connexes