-->

Capifony failed reinstalling vendors with Symfony2

2019-09-06 18:15发布

问题:

I'm trying to deploy a Symfony2.1 project with Capifony2.1.14 and it failed when reinstalling vendors .

Configuration: I'm on Mac OSX Montain Lion (client) and have a server on servergrove.com witch is on Ubuntu 12.04.1 LTS.

My deploy.rb file looks like this:

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

And here are the output on my terminal:

Can someone explain to me why I get this error and how I can fix it?

回答1:

You should add:

set :use_composer, true

To your deploy.rb.