aboutsummaryrefslogtreecommitdiffstats
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..e2371aa
--- /dev/null
+++ b/server.js
@@ -0,0 +1,25 @@
1'use strict'
2
3/*
4|--------------------------------------------------------------------------
5| Http server
6|--------------------------------------------------------------------------
7|
8| This file bootstraps Adonisjs to start the HTTP server. You are free to
9| customize the process of booting the http server.
10|
11| """ Loading ace commands """
12| At times you may want to load ace commands when starting the HTTP server.
13| Same can be done by chaining `loadCommands()` method after
14|
15| """ Preloading files """
16| Also you can preload files by calling `preLoad('path/to/file')` method.
17| Make sure to pass a relative path from the project root.
18*/
19
20const { Ignitor } = require('@adonisjs/ignitor')
21
22new Ignitor(require('@adonisjs/fold'))
23 .appRoot(__dirname)
24 .fireHttpServer()
25 .catch(console.error)