From ba8488164fe5e364c727481617be7b0afd8d6cbf Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 11 Jan 2017 08:51:50 +0000 Subject: [PATCH] Make server run as node --- package.json | 2 +- server.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 server.js diff --git a/package.json b/package.json index ad29f54..4fd9633 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "test": "npm run mocha && npm run lint && nsp check", "lint": "eslint server.js tests/**.js", - "start": "node server.js", + "start": "./server.js", "mocha": "NODE_ENV=test mocha tests/**.test.js" }, "engines": { diff --git a/server.js b/server.js old mode 100644 new mode 100755 index e0e3d4c..9452082 --- a/server.js +++ b/server.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node const express = require('express'); const staticFile = require('connect-static-file'); const compression = require('compression');