Make server run as node
This commit is contained in:
parent
a550a344ce
commit
ba8488164f
2 changed files with 2 additions and 1 deletions
|
@ -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": {
|
||||
|
|
1
server.js
Normal file → Executable file
1
server.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env node
|
||||
const express = require('express');
|
||||
const staticFile = require('connect-static-file');
|
||||
const compression = require('compression');
|
||||
|
|
Reference in a new issue