Last active
March 11, 2020 20:16
-
-
Save albertobraschi/6130e8530548f8b0febf4d5b1eca4018 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#permissao | |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; | |
find ./var -type d -exec chmod 777 {} \; | |
find ./pub/media -type d -exec chmod 777 {} \; | |
find ./pub/static -type d -exec chmod 777 {} \; | |
chmod 700 ./app/etc; | |
chmod 644 ./app/etc/*.xml; | |
chown -R www-data:www-data .; | |
chmod u+x bin/magento | |
#deploy | |
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*;php -f bin/magento setup:static-content:deploy en_US;php -f bin/magento setup:static-content:deploy pt_BR;php -f bin/magento c:c;bin/magento c:f; | |
- DEV | |
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/* generated/*;php -f bin/magento setup:static-content:deploy pt_BR -f;php -f bin/magento setup:static-content:deploy en_US -f;php -f bin/magento c:c;php -f bin/magento c:f; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment