Skip to content

Instantly share code, notes, and snippets.

@JosielFaleiros
Created August 12, 2018 17:59
Show Gist options
  • Save JosielFaleiros/9f2703e4524ac3168681fb8a755bddad to your computer and use it in GitHub Desktop.
Save JosielFaleiros/9f2703e4524ac3168681fb8a755bddad to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo php -f bin/magento cache:clean
sudo rm -rf pub/static/*;
sudo rm -rf var/*/*;
sudo php -f bin/magento setup:static-content:deploy pt_BR en_US
sudo chown -R :www-data .
sudo find ./var -type d -exec chmod 777 {} \;
sudo find ./pub/media -type d -exec chmod 777 {} \;
sudo find ./pub/static -type d -exec chmod 777 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment