/etc/app-types/node/start.sh

I imported a project from GitHub and it fails to start with /etc/app-types/node/start.sh. Where is the description of Glitch startup procedure and how to adopt existing projects to be runnable by it?

Projects require a start command in package.json, so try:
"scripts": { "start": "sh ./etc/app-types/node/start.sh" },

Like in https://glitch.com/edit/#!/coal-note

Edit: I just realised where you were getting that sh path from - I had assumed it was from your own app, but it’s what appears if no start command is specified. So you can do something like what I’ve put above if you’re using a sh file. But if you don’t, then you can just do "start": "node server.js", replacing server.js with the name of your server start file.

2 Likes

Thanks. That helped. I still could not find documentation of the source code for /etc/app-types/node/start.sh. Is it uploaded somewhere?

no, so I’ll add some detail about it to our FAQ. Thanks

Edit: https://glitch.com/faq#failStart

2 Likes