Multiple Starting scripts?


#1

I’ve tried many ways on getting 2 startup scripts to work and none work. I’m trying to run an NBA package but I am not wanting to have to manage it in my server.js script.

“scripts”: {
“start”: “npm run server && npm run nba”,
“server”: “node server.js”,
“nba”: “node nba.js”
},

This doesn’t seem to work


#2

Hi @Ash13-Dev, that does seem on the surface like it ought to work. What happens if you execute npm run-scripts nba in the console? Does the start script run if you remove one or the other of the two scripts you hope to start up with? Can you provide the full contents of your package.json or your project name (feel free to email to support@glitch.com if you’d prefer)