Require package file for server module. Still in dev.
This commit is contained in:
parent
0f74f6ac7c
commit
d50ba3ac6e
|
@ -8,13 +8,15 @@ let cam
|
||||||
let proj
|
let proj
|
||||||
let light
|
let light
|
||||||
|
|
||||||
|
const PACKAGE = require('../../package.json')
|
||||||
|
|
||||||
class Server {
|
class Server {
|
||||||
constructor (camera, projector, light) {
|
constructor (camera, projector, light) {
|
||||||
restify = require('restify')
|
restify = require('restify')
|
||||||
os = require('os')
|
os = require('os')
|
||||||
app = restify.createServer({
|
app = restify.createServer({
|
||||||
name: 'mcopy-server',
|
name: 'mcopy-server',
|
||||||
version: '2.0.0'
|
version: PACKAGE.version
|
||||||
})
|
})
|
||||||
|
|
||||||
this.ip = this.getIp()
|
this.ip = this.getIp()
|
||||||
|
|
Loading…
Reference in New Issue