New project won't wake up

I created a new project, ‘procmap’. It starts ok (I see the log messages) but when I try to connect to it, I just get the ‘waking up’ message.

I can run it just fine from the console, and use curl (from within the console) to connect.

This is the test URL that should return some JSON:
https://procmap.glitch.me/grid/14/14788/11433.geojson

Thanks for any help.

Hi @stevage,

Are you getting any errors in the Glitch Logs?

Its probably because the server is listening to a different port than Glitch is configured for.

Try this on the listener …

const listener = app.listen(process.env.PORT || 3000, function)

2 Likes

Ah, awesome. I obviously had the wrong mental model about how ports work in Glitch. That fixed it.