mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 09:26:24 +00:00
18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
dotenv = require('dotenv-flow');
|
|
dotenv.config()
|
|
|
|
var server = require('@steedos/meteor-bundle-runner');
|
|
var steedos = require('@steedos/core');
|
|
server.Fiber(function () {
|
|
try {
|
|
server.Profile.run("Server startup", function () {
|
|
server.loadServerBundles();
|
|
steedos.init();
|
|
server.callStartupHooks();
|
|
server.runMain();
|
|
})
|
|
} catch (error) {
|
|
console.error(error.stack)
|
|
}
|
|
}).run()
|