Laravel Valet 504 Gateway Time-Out

I recenly started gettting 504 from Laravel app using valet had some issues while debugging it. Basically it boils down to NGINX. Add these values to your proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 600; fastcgi_read_timeout 300; fastcgi_buffers 8 128k;…

Install Magento 2 with Nginx on Laravel Forge

Here's to do it. Create site at Laravel Forge control panel set web directory to /pub ssh into your server get Magento via composer composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition . setup proper file permissions find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod…