Vulcan/packages/nova-core/lib/server/start.js

21 lines
497 B
JavaScript
Raw Normal View History

2016-05-20 09:59:33 +09:00
import {Inject} from 'meteor/meteorhacks:inject-initial';
Meteor.startup(function () {
Events.log({
name: "firstRun",
2015-03-28 18:30:26 +09:00
unique: true, // will only get logged a single time
important: true
});
2015-01-02 16:05:28 +09:00
});
if (Telescope.settings.get('mailUrl')) {
process.env.MAIL_URL = Telescope.settings.get('mailUrl');
}
2015-04-22 11:33:36 +09:00
Meteor.startup(function() {
if (typeof SyncedCron !== "undefined") {
SyncedCron.start();
}
});
Inject.obj('serverTimezoneOffset', {offset: new Date().getTimezoneOffset()});