This file contains 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
>> add lines in host nginx.conf | |
location ~ /.well-known{ | |
allow all; | |
} | |
>> restart nginx | |
service nginx restart | |
>> create folder ".well-known" in root path project | |
mkdir {PATH}/.well-known |
This file contains 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
syncWithCdn.sh >> | |
#!/bin/bash | |
s3cmd sync /PATH s3://bucket-name/ | |
#~ sync path in S3 Amazon | |
* * * * * /PATH/syncWithCdn.sh >> /PATH/log_sync.txt | |
#~ |
This file contains 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
https://explainshell.com/ | |
https://chmod-calculator.com/ | |
https://crontab.guru/ |
This file contains 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
sudo chown -R www-data:www-data /var/www/html/{folder} && | |
sudo rm -rf /var/www/html/{folder}/var/* && | |
sudo rm -rf /var/www/html/{folder}/pub/static/* && | |
sudo chmod -R 777 /var/www/html/{folder}/pub/static && | |
php /var/www/html/{folder}/bin/magento setup:upgrade && | |
php /var/www/html/{folder}/bin/magento setup:di:compile && | |
php /var/www/html/{folder}/bin/magento setup:static-content:deploy pt_BR && | |
chmod -R 777 /var/www/html/{folder}/var && | |
chmod -R 777 /var/www/html/{folder}/pub && | |
sudo chown -R www-data:www-data /var/www/html/{folder} && |
This file contains 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
sudo chown -R www-data:www-data /var/www/html/{folder} && | |
sudo rm -rf /var/www/html/{folder}/var/* && | |
sudo rm -rf /var/www/html/{folder}/generated/* && | |
sudo rm -rf /var/www/html/{folder}/pub/static/* && | |
sudo chmod -R 777 /var/www/html/{folder}/pub/static && | |
php /var/www/html/{folder}/bin/magento setup:upgrade && | |
php /var/www/html/{folder}/bin/magento setup:di:compile && | |
php /var/www/html/{folder}/bin/magento setup:static-content:deploy pt_BR -f && | |
chmod -R 777 /var/www/html/{folder}/var && | |
chmod -R 777 /var/www/html/{folder}/pub/static && |
NewerOlder