2009-08-17 21 views
0

私はCapistranoでRailsアプリケーションを導入しようとしました。私はデプロイを呼び出すときにここでCapistrano:chdirにできないか、gitアーカイブがありません

何が起こる:移行:存在し、それが--bareリポジトリです/home/collimarco/git/foto-fiori.git

$ 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

ディレクトリ!では、問題は何ですか?

+1

capistranoがSSHセッションでサーバーから実行しようとしているコマンドを実行しようとしましたか?具体的には、cd /home/collimarco/foto-fiori.com/shared/cached-copy && git originを取得します。&git reset -hard b38d7ae360a23c1660baceef571667b79e19769b && git clean -d -x -f; –

答えて

0

Dreamhostが自分のサイトを別のサーバーに移行していました。

関連する問題