2016-05-20 09:59:33 +09:00
|
|
|
import {Inject} from 'meteor/meteorhacks:inject-initial';
|
2016-11-26 02:46:55 +08:00
|
|
|
import { SyncedCron } from 'meteor/percolatestudio:synced-cron';
|
2017-03-23 16:27:59 +09:00
|
|
|
import { getSetting } from 'meteor/vulcan:lib';
|
2016-11-26 11:33:27 +09:00
|
|
|
|
2016-12-12 15:00:56 +09:00
|
|
|
if (getSetting('mailUrl')) {
|
|
|
|
process.env.MAIL_URL = getSetting('mailUrl');
|
2016-02-16 17:30:49 +09:00
|
|
|
}
|
2015-04-22 11:33:36 +09:00
|
|
|
|
|
|
|
Meteor.startup(function() {
|
2016-11-26 11:33:27 +09:00
|
|
|
if (typeof SyncedCron !== 'undefined') {
|
2016-02-16 17:30:49 +09:00
|
|
|
SyncedCron.start();
|
|
|
|
}
|
2015-05-01 18:22:00 +02:00
|
|
|
});
|
2016-05-13 15:52:33 +09:00
|
|
|
|
2016-11-26 02:46:55 +08:00
|
|
|
Inject.obj('serverTimezoneOffset', {offset: new Date().getTimezoneOffset()});
|