Capifony无法使用Symfony2.1重新安装供应商

时间:2012-09-04 16:56:31

标签: symfony symfony-2.1 composer-php capifony

我正在尝试使用 Capifony2.1.14 部署 Symfony2.1 项目,并且在重新安装供应商时失败。

配置: 我在Mac OSX Montain Lion(客户端)上,在servergrove.com上有一个服务器,它位于Ubuntu 12.04.1 LTS上。

我的deploy.rb文件如下所示:

set :application, "DOA Manager Toshiba"
set :domain,      "root@server.me"
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

这是我终端上的输出: screenshot of my terminal

有人可以向我解释为什么我会收到此错误以及如何解决此问题?

1 个答案:

答案 0 :(得分:2)

你应该添加:

set :use_composer, true

到您的deploy.rb。