2

In production mode when I change the design of some particular block or page then I am only working on one or two files like js and CSS.

To apply that one change I need to deploy the whole theme.

Can we deploy one file or deploy CSS or js content particularly?

just like when I change some design in the frontend section and delete the static file in theme and deploy it only for that theme and area

rm -rf Local/argento-stripes-custom/fr_FR/Magento_Checkout/*

php bin/magento s:s:d -f en_US fr_FR -a frontend -t Local/argento-stripes-custom

deploy fronend theme only

it only deploy require theme for frontend only.

So, it is possible to deploy Module changes only like

php bin/magento s:s:d -f en_US fr_FR -a frontend -t Local/argento-stripes-custom/Magento_Checkout/

Thank you.

asked Oct 17, 2020 at 10:27

1 Answer 1

1

The short answer is no it's not - because of theme inheritance

However have you considered building the theme in a magento mirror folder (build folder) outside of web root using the same db credentials and then rsync the mirror build to web root.

Rsync options can be used to overwrite or delete the difference. Gives you a bit more protection if a less error halts the process in your build folder. That's the basis for most deployment processes I've seen.

answered Dec 8, 2020 at 20:31
1
  • if it will possible to deploy one module with its dependency then it reduces one more con of the monolithic architecture of Magento :D Commented Dec 17, 2020 at 6:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.