Last active
April 7, 2025 05:44
-
-
Save masb0ymas/1e193843efe319a33fa46e2ef6af081f to your computer and use it in GitHub Desktop.
Deployment Laravel
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 nginx -t | |
| sudo ln -s /etc/nginx/sites-available/example /etc/nginx/sites-enabled | |
| sudo service nginx restart | |
| sudo systemctl restart nginx | |
| // Khusus laravel | |
| // Cara 1 : | |
| sudo chown -R www-data:www-data /var/www/html/MyProject/ | |
| sudo chmod -R 755 /var/www/html/MyProject/ | |
| php artisan storage:link | |
| // Cara 2 : | |
| sudo chmod -R 777 public/ | |
| sudo chmod -R 777 storage/ | |
| sudo chmod -R 777 bootstrap/ | |
| php artisan storage:link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment