-
Notifications
You must be signed in to change notification settings - Fork 2
Svelte app returns 502 #2
Comments
Hi @elabx, I git cloned it, started it with I did ddev ssh
pm2 stop all
cd svelte/
npm run dev With that it responded sucessfully on https://app.my-project.ddev.site/ - so I guess it's something about the pm2 / pm2 configuration? (I'm not a pm2 expert myself yet) |
When I started it again with |
After I started them both again, it somehow worked in the end - maybe the 502 error is somewhere cached via nginx for some time? 🤔
(Here someone suggests increasing |
Okay, sorry for all the messages. Should've put this into one report ;-) After I deleted the project and started it again
There is the 502 error again and I can see in So my best current guess is that this has something to do with running See apps.config.js, I guess the command is not ready in time for the first request since it has to install everything before it can be started (= longer than nginx timeout time?): module.exports = {
apps : [
{
name: "Svelte",
cwd: "/var/www/html/svelte",
script: "npm run dev || (rm -rf node_modules && npm install && npm run dev)"
},
{
name: "Keystone",
cwd: "/var/www/html/keystone",
script: "npm run dev || (rm -rf node_modules && npm install && npm run dev)"
}
]
} btw: I'm on |
Changing the vite server configuration 127.0.0.1 seems to fix this, can you test on your end @mandrasch? |
I am having an issue in a project where one of the proxied node apps is returning a 502, so I tried to reproduce it in your repository and it did exactly the same.
The steps I followed are:
ddev start
The KeystoneCMS works correctly but the one that should be the svelte app returns a 502 from nginx.
Logs on
web
:Not sure if reproducible by anyone, I had a colleague with the same issue on Linux. I have tried this using ddev 1.23.0 - 1.23.2 with Orbstack and Docker Desktop.
The text was updated successfully, but these errors were encountered: