Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
316 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | const fs = require('fs')
|
---|
4 |
|
---|
5 | const Server = require('./server')
|
---|
6 | const configurationFile = process.argv[2]
|
---|
7 | const fileContents = fs.readFileSync(configurationFile, 'utf-8')
|
---|
8 | fs.unlink(configurationFile, function () {})
|
---|
9 | const data = JSON.parse(fileContents)
|
---|
10 | const server = new Server(data)
|
---|
11 | server.start(data)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.