Skip to content

Instantly share code, notes, and snippets.

@masb0ymas
Last active April 7, 2025 05:44
Show Gist options
  • Select an option

  • Save masb0ymas/1e193843efe319a33fa46e2ef6af081f to your computer and use it in GitHub Desktop.

Select an option

Save masb0ymas/1e193843efe319a33fa46e2ef6af081f to your computer and use it in GitHub Desktop.
Deployment Laravel
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