Vulcan/packages/nova-core/lib/server/start.js
2016-05-20 09:59:33 +09:00

21 lines
No EOL
497 B
JavaScript

import {Inject} from 'meteor/meteorhacks:inject-initial';
Meteor.startup(function () {
Events.log({
name: "firstRun",
unique: true, // will only get logged a single time
important: true
});
});
if (Telescope.settings.get('mailUrl')) {
process.env.MAIL_URL = Telescope.settings.get('mailUrl');
}
Meteor.startup(function() {
if (typeof SyncedCron !== "undefined") {
SyncedCron.start();
}
});
Inject.obj('serverTimezoneOffset', {offset: new Date().getTimezoneOffset()});