Cotya / magento-composer-installer

Composer installer for Magento modules
211 stars 77 forks source link

Change deploy-strategy on the fly #105

Open razbakov opened 8 years ago

razbakov commented 8 years ago

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
Flyingmana commented 8 years ago

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

TKlement commented 7 years ago

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

Julime commented 7 years ago

+1

Morgy93 commented 7 years ago

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.