Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capifony: update vendors and deps file

Is it possible to setup deployment script so that vendors would only update if deps file has changed since the last update?

like image 396
Dziamid Avatar asked Feb 21 '23 08:02

Dziamid


1 Answers

I struggled with the same problem one week ago and I found the solution. The file symfony2.rb (at my server located under /var/lib/gems/1.8/gems/capifony-2.1.4/lib) has the following ruby-code at the very end:

case vendors_mode
  when "upgrade" then symfony.vendors.upgrade
  when "install" then symfony.vendors.install
  when "reinstall" then symfony.vendors.reinstall
end

Also at the very top of the same file you can see the default value for vendors_mode:

set :vendors_mode, "reinstall"

Now in my deploy.rb I used the following:

set :vendors_mode, "install"

With this setting vendors are only installed if they don't exist yet in the target-version of the deps-file!

like image 137
Davincho Avatar answered Mar 08 '23 13:03

Davincho