Application not being updated?

My application, https://glitch.com/edit/#!/movingbeacons, seems to be in a state in which updates to the main server file, server.js aren’t being seen. Is there a way to really reset / restart an application completely?

For example, a GET request to http://movingbeacons.glitch.me/test will not be matched, resulting in “Cannot GET /test.” although the GET method is being implemented. (Just like the POST, but that isn’t working as well.)

The application works though, as HTTP GET to http://movingbeacons.glitch.me is responding normally… but with a older version of the application. For example: there’s no console.log message as specified in the code currently.

Hi Jochem,

your project is private, we can’t look into your source code. Would you mind making it public, or share a join link with me as a private message?

Thanks

Thanks for sharing, but remove it now or anyone can use it to become a member!

1 Like

OK, Emanuele responded very quickly with some workarounds / solutions:

First remark:

when you create an endpoint, remember to always use response.end() when your response is over.

Second tip:

in this specific case, there was a problem on our side: for some reason the “restarter”
got in a stuck state. If it happens again, you can open the terminal from the advanced
options menu and type “refresh”.

Final observation:

There is for sure some very edge-case condition in which the watcher gets stuck,
we see it once every month or two, but we didn’t find the root cause yet. “refresh” is a solution for now :slight_smile: