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

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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.