mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-22 17:06:42 +00:00
67b66898c5
This reverts commit 3e9fbf0357
.
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()
|