magento-composer-installer icon indicating copy to clipboard operation
magento-composer-installer copied to clipboard

Change deploy-strategy on the fly

Open razbakov opened this issue 9 years ago • 4 comments
trafficstars

i want for all environments to have copy strategy and only for dev to have symlink. is it maybe possible to change strategy on the fly?

composer config extra.magento-deploystrategy "symlink"

this doesn't work for me.

or would be nice to have some command to deploy with different strategies, for example:

composer run-script redeploy symlink

razbakov avatar Apr 04 '16 15:04 razbakov

first one does not work because it takes the config out of the composer.lock file, so the second one would probably be the best. I would do it analog to the redeploy command then, because we have more composer context there then in run-script I think

Flyingmana avatar Apr 06 '16 07:04 Flyingmana

This is exactly what I need, too. Any progress or workaround to solve this strategy at the moment?

TKlement avatar Feb 14 '17 14:02 TKlement

+1

Julime avatar Oct 17 '17 09:10 Julime

issue push

Sadly the script also doesn't recognize --dev so that

"magento-deploystrategy": "copy",
"magento-deploystrategy-dev": "symlink"

has no effect on redeploy. Maybe that's a different approach instead of changing the deploy strategy on the fly.

Morgy93 avatar Oct 17 '17 09:10 Morgy93