steedos-platform/apps/contracts/server.js

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()