0

How to add script in package.json for deploying multiple localhosts servers in single app in nodejs heroku ? Suppose in my main project folder I have 2 game folders ( game1 (running on localhost:3000) and game2 (running on localhost:5000) ) and my main website ( running on localhost:8080). So for running my complete project I perform 1) node server.js 2) node ./game1/server.js 3) node ./game2/server.js . But while deploying project on heroku we add "start" : "node server.js" in scripts in package.json . So my question is how to add "node ./game1/server.js " this also in package.json ?

Pranav Patil
  • 127
  • 9

0 Answers0