1

Instead of entering each command individually is there a single commande that I can enter to deploy content and to also clear the appropriate folders?

1 Answer 1

1

you could add a alias to your command line like so

alias deployit='php bin/magento setup:static-content:deploy && php bin/magento cache:flush && rm -rf var/generation' 

or you can seperate them

alias deployit='php bin/magento setup:static-content:deploy'
alias cacheit='php bin/magento cache:flush'
alias genit='rm -rf var/generation'

its up to you how you do it but the above should make it simple for you to run the commands simply type in the alias

Your Answer

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.