Hi everyone,
I’m having some issues with my application, and I hope someone can help. Below are the details of my setup and the problems I’m facing:
Background
- I’m using the
richarvey/nginx-php-fpm
Docker image. - Locally, everything works fine when I use a standard image and manually configure PHP-FPM and NGINX.
- The app is built with Laravel + Vue.js (Vite).
- Sometimes
npm run
process gets killed unexpectedly:
LOG:
/var/www/html/scripts/00-laravel-deploy.sh: line 17: 289 Killed npm run render
I don’t know why this happens.
Issues
- Path Rewriting Not Working
- I have a page at this URL: https://kayak-map.onrender.com/explore/trail/rawka.
- Locally, this page loads correctly when accessed via this URL.
- On the server, however, I get a 404 error from NGINX.
- Weather API Endpoint Issue
- The weather API endpoint https://kayak-map.onrender.com/api/v1/weather?lat=52.08174002&lon=20.17178617 also returns a 404 error.
- Instead of seeing the Laravel 404 page, I get the NGINX error page with a sad face and a link to the GitHub of the image creator.
- 504 Gateway Time-out
- Occasionally, I also run into a 504 Gateway Time-out error.
- This is quite frustrating, and it’s making me hesitant to upgrade to the $7 plan given the instability I’m experiencing.
Configuration Details
- The NGINX configuration is the same as provided in the example for the Docker image.
Question
Can anyone help me understand why the path rewriting might not be working and why I’m seeing the NGINX error page instead of the Laravel one? Any suggestions on how to address the 504 errors would also be greatly appreciated.
Thank you in advance for your help!