Tuesday 6 June 2017

How to run node in webhosting?

I'am creating 2d mmorpg game and I upload client and socket.io server on webhosting, but don't know how to start server.js, if i'am right then I have to run node with package.json but I don't know how to run it in webhosting...

My package.json:

{
  "name": "Example server",
  "version": "0.0.0",
  "main": "server.js",
  "author": "Aurelijus",
  "private": true,
  "license": "BSD",
  "dependencies": {
    "express": "4.13.4"
  },
  "scripts": {
    "start": "node server.js"
  }
}

Thanks, I hope it's not out of topic :\



via Aurelijus

No comments:

Post a Comment