Glitch restarts node and automatically deploys your app as you’re editing it, so you always see the latest version when going to the app. Glitch apps also sleep after 5 mins of inactivity but wake again quickly whenever they’re needed, which also causes node to restart.
If you’d like to change the restart behaviour, it can be configured through use of a
watch.json config file in your app. See https://glitch.com/faq#restart for more info.