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
sudo apt-get update | |
sudo apt-get install nginx | |
sudo nginx -t | |
sudo systemctl restart nginx | |
sudo apt-get install mysql-server |
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
#!/bin/bash | |
mkdir -p deploy_log | |
file_name=deploy_log/deploy_$(date "+%Y_%m_%d_%H_%M_%S") | |
echo 'Deployment Started . . . . .' |& tee $file_name | |
chown -R www-data:www-data storage/ | |
chmod -R 777 storage/ | |
chown -R www-data:www-data bootstrap/cache/ |