Skip to content

Instantly share code, notes, and snippets.

View saranemohan's full-sized avatar
💻

Saran E mohan saranemohan

💻
View GitHub Profile
sudo apt-get update
sudo apt-get install nginx
sudo nginx -t
sudo systemctl restart nginx
sudo apt-get install mysql-server
@saranemohan
saranemohan / laravel_deploy.sh
Last active December 7, 2023 05:57
Deploy laravel with ease. using command line, integrate latest update from git remote repository. all necessary steps to be followed for laravel is implemented. a log file is recorded for future reference.
#!/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/