Capifony: update providers and deps file

Is it possible to install a deployment script so that providers are updated only if the deps file has been modified since the last update?

+4
source share
1 answer

I struggled with the same problem a week ago and I found a solution. The symfony2.rb file (on 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" 

Using this option, providers are installed only if they do not already exist in the target version of the deps!

+8
source

Source: https://habr.com/ru/post/1398475/


All Articles