Close the applications


#1

How can i close the application? In the console i type “node bot.js” and if i type it again it opens a new app… How can i close an app?


#2

Typing ‘node bot.js’ in the console runs that file in your project, so it’s likely that is what you should have in the start command in the package.json file in your app.

Since Glitch auto-restarts on editing a file, editing that start command to something else to intentionally break it will stop the project from running. You can then set the start command back when you want to run it again.

Projects sleep after 5 minutes of inactivity so long as the editor isn’t open and you’re not keeping the bot running in your code.