EvenNode Hosting Guide

This guide shows how to configure and deploy MeeseOS on EvenNode hosting.

Prepare

EvenNode has a couple of requirements in order for MeeseOS server to launch properly:

Add startup script

In your package.json file, add start entry to the scripts section:

{
  "scripts": {
    "start": "npm run build && npm run package:discover -- --copy && node src/server/index.js"
  }
}

This will build, copy applications and start the server on deployment.

Modify server port

In your src/server/config.js file, add the port entry:

const path = require("path");
const root = path.resolve(__dirname, "../../");

module.exports = {
  root,
  public: path.resolve(root, "dist"),

  // This is the new required entry
  port: process.env.PORT
}

Modify dependencies

EvenNode installs packages from package.json in production mode. So this means you'll have to move the dependencies in devDependencies to dependencies before deploying.

Example, from:

{
  "devDependencies": {
    "a": "1.2.3"
  },
  "dependencies": {
    "b": "1.2.3"
  }
}

to:

{
  "dependencies": {
    "a": "1.2.3",
    "b": "1.2.3"
  }
}

Deploy

Follow EvenNode git deployment guide or transfer the installation via ftp.

MeeseOS Web Desktop - © Aaron Meese <aaronjmeese@gmail.com>

results matching ""

    No results matching ""