diff options
author | vantezzen <properly@protonmail.com> | 2019-08-22 11:12:36 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-22 11:12:36 +0200 |
commit | b018adf240679ec59a7344e30be39400f1ecd8af (patch) | |
tree | c076635761667dad302716b498088f1047281e46 /server.js | |
download | ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.gz ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.zst ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.zip |
Initial commit
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 25 |
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 | |||
20 | const { Ignitor } = require('@adonisjs/ignitor') | ||
21 | |||
22 | new Ignitor(require('@adonisjs/fold')) | ||
23 | .appRoot(__dirname) | ||
24 | .fireHttpServer() | ||
25 | .catch(console.error) | ||