2016-08-08 11:18:21 +09:00
|
|
|
import Telescope from 'meteor/nova:lib';
|
2016-05-20 09:59:33 +09:00
|
|
|
import {Inject} from 'meteor/meteorhacks:inject-initial';
|
2016-06-23 15:16:32 +09:00
|
|
|
import Events from "meteor/nova:events";
|
2016-05-20 09:59:33 +09:00
|
|
|
|
2014-12-31 19:05:00 +09:00
|
|
|
Meteor.startup(function () {
|
2015-04-22 08:31:11 +09:00
|
|
|
Events.log({
|
2014-12-31 19:05:00 +09:00
|
|
|
name: "firstRun",
|
2015-03-28 18:30:26 +09:00
|
|
|
unique: true, // will only get logged a single time
|
2014-12-31 19:05:00 +09:00
|
|
|
important: true
|
2015-05-01 18:22:00 +02:00
|
|
|
});
|
2015-01-02 16:05:28 +09:00
|
|
|
});
|
|
|
|
|
2016-02-16 17:30:49 +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() {
|
2016-02-16 17:30:49 +09:00
|
|
|
if (typeof SyncedCron !== "undefined") {
|
|
|
|
SyncedCron.start();
|
|
|
|
}
|
2015-05-01 18:22:00 +02:00
|
|
|
});
|
2016-05-13 15:52:33 +09:00
|
|
|
|
|
|
|
Inject.obj('serverTimezoneOffset', {offset: new Date().getTimezoneOffset()});
|