本文介绍了Capifony无法使用Symfony2.1重新安装供应商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 Capifony2.1.14 部署 Symfony2.1 项目,并且在重新安装供应商时失败。
I'm trying to deploy a Symfony2.1 project with Capifony2.1.14 and it failed when reinstalling vendors .
配置:
我在Mac OSX Montain Lion(客户端)上,在servergrove.com上有一个服务器,在Ubuntu 12.04.1 LTS上。
Configuration:I'm on Mac OSX Montain Lion (client) and have a server on servergrove.com witch is on Ubuntu 12.04.1 LTS.
我的deploy.rb文件如下:
My deploy.rb file looks like this:
set :application, "DOA Manager Toshiba"
set :domain, "[email protected]"
set :deploy_to, "/var/www/vhosts/server.me"
set :app_path, "app"
set :user, "root"
set :use_sudo, false
set :repository, "git://github.com/****/****.git"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :model_manager, "doctrine"
# Or: `propel`
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 Symfony2 migrations will run
set :keep_releases, 3
set :update_vendors, true
ssh_options[:forward_agent] = true
# Be more verbose by uncommenting the following line
# logger.level = Logger::MAX_LEVEL
这是我终端上的输出:
And here are the output on my terminal:
有人可以向我解释为什么出现此错误以及如何解决该错误吗?
Can someone explain to me why I get this error and how I can fix it?
推荐答案
您应该添加:
set :use_composer, true
到您的deploy.rb。
To your deploy.rb.
这篇关于Capifony无法使用Symfony2.1重新安装供应商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!