In the https://glitch.com/edit/#!/hello-express template (which is in the drop-down menu when you click “New Project”) this:
Should be this:
app.use(express.static(__dirname + "/public"));
I found this out when deploying a glitch repo to my own server and running it with PM2.
__dirname is correctly used on this line of the template:
response.sendFile(__dirname + "/views/index.html");
Which makes me think that the lack of
__dirname in the
express.static line is definitely a mistake.