Pierre de LESPINAY
Pierre de LESPINAY

Reputation: 46208

Capifony shared vendors composer install

I'm trying to configure Capifony to make a simple composer install in my shared vendor directory at each deploy. Unlike the default behavior running composer update (which I surely don't want !)

set :shared_children, [app_path + "/logs", "vendor"]
set :use_composer,    true
set :update_vendors,  true
set :vendors_mode,    "install"

But Capifony seems to reinstall the whole vendor set instead of relying on the standard composer install mechanism (it takes years)

As stated here, the suggested way to speed up the deployment is to copy vendors each time, but I don't want/need this since I can retrieve them from composer.lock.

Am I missing something ?

What is the standard way to run this composer install for each cap deploy without reinstalling the whole thing ?

Upvotes: 0

Views: 222

Answers (1)

s7anley
s7anley

Reputation: 2498

All you need is define use_composer as true. Regarding your code, you should omit update_vendors or define it to false.

set :use_composer, true
set :update_vendors, false

Upvotes: 2

Related Questions