cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2.x CE shared /var folder

SOLVED

Magento 2.2.x CE shared /var folder

Hello Magento gurus,

 

Is it safe to sync /var folder with other Magento nodes or every node should have its own /var folder. 

Also i read that /var/generated should be shared. 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.2.x CE shared /var folder

Hi @thedoole

 

If you think the answer has resolved your problems - kindly accept as solution and close the issues so other user gets helped !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

2 REPLIES 2

Re: Magento 2.2.x CE shared /var folder

Hi @thedoole

 

Yes - each magento node have their own VAR directory - basically VAR directory have a generated factory classes , proxy classes etc.  so all those classes are different for different magento nodes.

 

Also var/generated directory is unique for each node of magento.

 

So here i would suggest you to don't shared the VAR directory with other Magento node.

 

When we run - php bin/magento setup:di:compile command it will generate all those directories again !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2.2.x CE shared /var folder

Hi @thedoole

 

If you think the answer has resolved your problems - kindly accept as solution and close the issues so other user gets helped !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution