1

我正在尝试在我的服务器上配置 Capifony 以部署 symfony2 项目,但是当我启动时

cap deploy

我收到此错误:

failed: "sh -c 'cd /var/www/vhosts/nov-ita/releases/20120320110954 && php app/console assets:install web --env=prod'" on myserver.home

这是我的 deploy.rb:

set :application, "nov-ita"
set :domain,      "root@myserver.home"
set :deploy_to,   "/var/www/vhosts/nov-ita"
set :app_path,    "app"
set :user,        "root"
set :use_sudo,    false

set :scm,         :subversion 
set :repository,  "svn://server.home/novita2/trunk"
set :scm_username, "myuser"
set :scm_password, "mypass"
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, `subversion` or `none`

set :model_manager, "doctrine"
# Or: `doctrine`

role :web,        domain                         # Your HTTP server, Apache/etc
role :app,        domain                         # This may be the same as your `Web` server
role :db,         domain, :primary => true       # This is where Rails migrations will run

set  :keep_releases,  1

set :deploy_via, :rsync_with_remote_cache

# directories that will be shared between all deployments
set :shared_children,     [app_path + "/logs", web_path + "/uploads", "vendor", web_path + "/images/cached"]

我已经在两个服务器(本地和远程)上安装了 rsync,远程服务器上的 svn 和 ssh 访问工作正常。任何的想法??

更新:正如我建议的那样,我在 deploy.rb 中插入 set :update_vendors, true ,现在我得到了这个输出

          * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "svn info svn://server.home/novita2/trunk --username myuser --password mypass --no-auth-cache  -rHEAD"
    command finished in 62ms
    executing locally: svn switch -q --username myuser --password mypass --no-auth-cache  -r216 svn://server.home/novita2/trunk /var/www/vhosts/novita2/jury/.rsync_cache
    command finished in 195ms
    executing locally: rsync -az --delete --rsh='ssh -p 22' /var/www/vhosts/novita2/jury/.rsync_cache/ root@myserver.home:/var/www/vhosts/nov-ita/shared/cached-copy/
root@myserver.home's password: 
    command finished in 621673ms
  * executing "rsync -a --delete /var/www/vhosts/nov-ita/shared/cached-copy/ /var/www/vhosts/nov-ita/releases/20120320133556/"
    servers: ["myserver.home"]
Password: 
    [myserver.home] executing command
    [myserver.home] sh -c 'rsync -a --delete /var/www/vhosts/nov-ita/shared/cached-copy/ /var/www/vhosts/nov-ita/releases/20120320133556/'
    command finished in 1043ms
  * executing `deploy:finalize_update'
  * executing "chmod -R g+w /var/www/vhosts/nov-ita/releases/20120320133556"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'chmod -R g+w /var/www/vhosts/nov-ita/releases/20120320133556'
    command finished in 317ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/cache ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/cache; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/cache ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/cache; fi'
    command finished in 265ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/releases/20120320133556/app/cache && chmod -R 0777 /var/www/vhosts/nov-ita/releases/20120320133556/app/cache"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/releases/20120320133556/app/cache && chmod -R 0777 /var/www/vhosts/nov-ita/releases/20120320133556/app/cache'
    command finished in 265ms
  * executing "chmod -R g+w /var/www/vhosts/nov-ita/releases/20120320133556/app/cache"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'chmod -R g+w /var/www/vhosts/nov-ita/releases/20120320133556/app/cache'
    command finished in 266ms
  * executing `deploy:share_childs'
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/app/logs"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/app/logs'
    command finished in 266ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/logs ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/logs; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/logs ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/logs; fi'
    command finished in 267ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/app/logs /var/www/vhosts/nov-ita/releases/20120320133556/app/logs"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/app/logs /var/www/vhosts/nov-ita/releases/20120320133556/app/logs'
    command finished in 265ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/web/uploads"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/web/uploads'
    command finished in 271ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads; fi'
    command finished in 276ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/web/uploads /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/web/uploads /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads'
    command finished in 301ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/vendor"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/vendor'
    command finished in 325ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/vendor ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/vendor; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/vendor ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/vendor; fi'
    command finished in 313ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/vendor /var/www/vhosts/nov-ita/releases/20120320133556/vendor"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/vendor /var/www/vhosts/nov-ita/releases/20120320133556/vendor'
    command finished in 252ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/web/images/cached"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/web/images/cached'
    command finished in 160ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached; fi'
    command finished in 168ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/web/images/cached /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/web/images/cached /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached'
    command finished in 183ms
  * executing "if [ -d web/css ] ; then mkdir -p web/css; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d web/css ] ; then mkdir -p web/css; fi'
    command finished in 175ms
  * executing "if [ -d web/images ] ; then mkdir -p web/images; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d web/images ] ; then mkdir -p web/images; fi'
    command finished in 171ms
  * executing "if [ -d web/js ] ; then mkdir -p web/js; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d web/js ] ; then mkdir -p web/js; fi'
    command finished in 172ms
  * executing "find /var/www/vhosts/nov-ita/releases/20120320133556/web/css /var/www/vhosts/nov-ita/releases/20120320133556/web/images /var/www/vhosts/nov-ita/releases/20120320133556/web/js -exec touch -t 201203201336.59 {} ';'; true"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] env TZ=UTC sh -c 'find /var/www/vhosts/nov-ita/releases/20120320133556/web/css /var/www/vhosts/nov-ita/releases/20120320133556/web/images /var/www/vhosts/nov-ita/releases/20120320133556/web/js -exec touch -t 201203201336.59 {} '\'';'\''; true'
*** [err :: myserver.home] find:
*** [err :: myserver.home] `/var/www/vhosts/nov-ita/releases/20120320133556/web/js'
*** [err :: myserver.home] : No such file or directory
*** [err :: myserver.home] 
    command finished in 603ms
    triggering after callbacks for `deploy:finalize_update'
  * executing `deploy:share_childs'
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/app/logs"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/app/logs'
    command finished in 155ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/logs ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/logs; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/app/logs ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/app/logs; fi'
    command finished in 155ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/app/logs /var/www/vhosts/nov-ita/releases/20120320133556/app/logs"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/app/logs /var/www/vhosts/nov-ita/releases/20120320133556/app/logs'
    command finished in 155ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/web/uploads"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/web/uploads'
    command finished in 152ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads; fi'
    command finished in 162ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/web/uploads /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/web/uploads /var/www/vhosts/nov-ita/releases/20120320133556/web/uploads'
    command finished in 156ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/vendor"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/vendor'
    command finished in 160ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/vendor ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/vendor; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/vendor ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/vendor; fi'
    command finished in 155ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/vendor /var/www/vhosts/nov-ita/releases/20120320133556/vendor"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/vendor /var/www/vhosts/nov-ita/releases/20120320133556/vendor'
    command finished in 153ms
  * executing "mkdir -p /var/www/vhosts/nov-ita/shared/web/images/cached"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'mkdir -p /var/www/vhosts/nov-ita/shared/web/images/cached'
    command finished in 160ms
  * executing "if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached; fi"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'if [ -d /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached ] ; then rm -rf /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached; fi'
    command finished in 154ms
  * executing "ln -nfs /var/www/vhosts/nov-ita/shared/web/images/cached /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'ln -nfs /var/www/vhosts/nov-ita/shared/web/images/cached /var/www/vhosts/nov-ita/releases/20120320133556/web/images/cached'
    command finished in 157ms
  * executing `symfony:vendors:reinstall'
  * executing "cd /var/www/vhosts/nov-ita/releases/20120320133556 && php bin/vendors install --reinstall"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'cd /var/www/vhosts/nov-ita/releases/20120320133556 && php bin/vendors install --reinstall'
 ** [out :: myserver.home] > Installing/Updating symfony
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/symfony
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/symfony
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/symfony
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating twig
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating monolog
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/monolog
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/monolog
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/monolog
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating doctrine-common
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-common
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-common
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-common
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating doctrine-dbal
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-dbal
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-dbal
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine-dbal
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating doctrine
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/doctrine
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating swiftmailer
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/swiftmailer
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/swiftmailer
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/swiftmailer
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating assetic
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/assetic
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/assetic
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/assetic
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating twig-extensions
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig-extensions
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig-extensions
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/twig-extensions
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating metadata
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/metadata
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/metadata
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor/metadata
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating SensioFrameworkExtraBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/FrameworkExtraBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/FrameworkExtraBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/FrameworkExtraBundle
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating JMSSecurityExtraBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/JMS/SecurityExtraBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/JMS/SecurityExtraBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/JMS/SecurityExtraBundle
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating SensioDistributionBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/DistributionBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/DistributionBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/DistributionBundle
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating SensioGeneratorBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/GeneratorBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/GeneratorBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Sensio/Bundle/GeneratorBundle
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating AsseticBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Symfony/Bundle/AsseticBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Symfony/Bundle/AsseticBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Symfony/Bundle/AsseticBundle
*** [err :: myserver.home] 
 ** [out :: myserver.home] > Installing/Updating GregwarImageBundle
*** [err :: myserver.home] sh:
*** [err :: myserver.home] git: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Gregwar/ImageBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Gregwar/ImageBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] cd: 1:
*** [err :: myserver.home] can't cd to /var/www/vhosts/nov-ita/releases/20120320133556/vendor//bundles/Gregwar/ImageBundle
*** [err :: myserver.home] 
*** [err :: myserver.home] sh:
*** [err :: myserver.home] /var/www/vhosts/nov-ita/releases/20120320133556/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: not found
*** [err :: myserver.home] 
*** [err :: myserver.home] PHP Fatal error:  Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/vhosts/nov-ita/releases/20120320133556/app/autoload.php on line 44
*** [err :: myserver.home] PHP Stack trace:
*** [err :: myserver.home] PHP   1. {main}() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:0
*** [err :: myserver.home] PHP   2. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:10
*** [err :: myserver.home] PHP   3. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/bootstrap.php.cache:3
*** [err :: myserver.home] PHP Fatal error:  Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/vhosts/nov-ita/releases/20120320133556/app/autoload.php on line 44
*** [err :: myserver.home] PHP Stack trace:
*** [err :: myserver.home] PHP   1. {main}() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:0
*** [err :: myserver.home] PHP   2. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:10
*** [err :: myserver.home] PHP   3. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/bootstrap.php.cache:3
    command finished in 574ms
  * executing `symfony:assets:install'
  * executing "cd /var/www/vhosts/nov-ita/releases/20120320133556 && php app/console assets:install web --env=prod"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'cd /var/www/vhosts/nov-ita/releases/20120320133556 && php app/console assets:install web --env=prod'
*** [err :: myserver.home] PHP Fatal error:  Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/vhosts/nov-ita/releases/20120320133556/app/autoload.php on line 44
*** [err :: myserver.home] PHP Stack trace:
*** [err :: myserver.home] PHP   1. {main}() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:0
*** [err :: myserver.home] PHP   2. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/console:10
*** [err :: myserver.home] PHP   3. require_once() /var/www/vhosts/nov-ita/releases/20120320133556/app/bootstrap.php.cache:3
    command finished in 212ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/vhosts/nov-ita/releases/20120320133556; true"
    servers: ["myserver.home"]
    [myserver.home] executing command
    [myserver.home] sh -c 'rm -rf /var/www/vhosts/nov-ita/releases/20120320133556; true'
    command finished in 273ms
failed: "sh -c 'cd /var/www/vhosts/nov-ita/releases/20120320133556 && php app/console assets:install web --env=prod'" on myserver.home
4

1 回答 1

2

你必须使用

set :update_vendors,    true 

以便供应商安装。

于 2012-03-20T13:02:57.743 回答