-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.ts
33 lines (28 loc) · 939 Bytes
/
server.ts
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
27
28
29
30
31
32
33
/*
|--------------------------------------------------------------------------
| Root Directory Resolver
|--------------------------------------------------------------------------
|
| At the start, we create root directory resolver in global variable.
|
*/
const path = require('path')
global.resolve = subPath => path.resolve(__dirname, subPath)
/*
|--------------------------------------------------------------------------
| Bootstrapping and config application
|--------------------------------------------------------------------------
|
| The first thing we will config application for run and use it.
|
*/
import './src/bootstrap'
/*
|--------------------------------------------------------------------------
| Running server at the custom port system
|--------------------------------------------------------------------------
|
| After create and config app, then run it at the custom port system.
|
*/
global.app.listen()