Capifony无法重新安装供应商与Symfony2.1
问题描述:
我试图部署一个Symfony2.1项目与Capifony2.1.14和重新安装供应商时失败。Capifony无法重新安装供应商与Symfony2.1
配置: 我在Mac OSX上Montain Lion(客户端)并在servergrove.com上有一个服务器witch在Ubuntu 12.04.1 LTS上。
我deploy.rb文件看起来像这样:
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
这里是我的终端上的输出:
可以给我这样的人解释为什么我得到这个错误,我怎么能解决它?
答
您应该添加:
set :use_composer, true
要将deploy.rb。
非常感谢您的回答! 我发现通过添加以下到我的deploy.rb文件解决方案: 集:update_vendors,假 集:use_composer,真正 集:php_bin, “在/ usr/local/bin目录/ PHP的” 集:shared_files,[ “app/config/parameters.yml”] 我现在正常工作的最终deploy.rb看起来像这样: –
请注意,如果将':use_composer'设置为true,':update_vendors'的含义完全改变,并且通常应该被设置为false,否则你可能会得到你不期望的供应商版本。 https://github.com/everzet/capifony/issues/366 – rjmunro