-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (22 loc) · 753 Bytes
/
index.js
File metadata and controls
26 lines (22 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** ****************************************************************************************************
* File: index.js
* Project: basic-fs
* @author Nick Soggin <iSkore@users.noreply.github.com> on 08-Jan-2018
*******************************************************************************************************/
'use strict';
const
gonfig = require( 'gonfig' ),
{ resolve } = require( 'path' );
gonfig
.setLogLevel( gonfig.LEVEL.VERBOSE )
.setEnvironment( process.env.NODE_ENV || gonfig.ENV.DEBUG )
.load( 'server', 'config/server.json' )
.load( 'api', 'config/api.js' )
.set( 'dataDir', resolve( './data' ) )
.refresh();
( async () => {
await require( './init' )();
require( './server' )
.initialize()
.start();
} )();