Does anyone know of a way I could run a Java file & JavaScript file at the same time without my computer running on glitch 24/7, because I’ve tried a shell NPM module and I’ve tried to use a start.sh file. But alas, no luck.
I know you said shell files didnt work, but try this:
Create file called start.sh
Inside package.json, set the start to “./start.sh”
The content of start.sh should be something along the lines of
Thank you very much! I just had to adjust the order the two files start with the server.js file first then putting a timeout on it starting then starting the Java server.