mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
17 lines
525 B
JavaScript
17 lines
525 B
JavaScript
import {Inject} from 'meteor/meteorhacks:inject-initial';
|
|
import { SyncedCron } from 'meteor/percolatestudio:synced-cron';
|
|
import { getSetting, registerSetting } from 'meteor/vulcan:lib';
|
|
|
|
registerSetting('mailUrl', null, 'The SMTP URL used to send out email');
|
|
|
|
if (getSetting('mailUrl')) {
|
|
process.env.MAIL_URL = getSetting('mailUrl');
|
|
}
|
|
|
|
Meteor.startup(function() {
|
|
if (typeof SyncedCron !== 'undefined') {
|
|
SyncedCron.start();
|
|
}
|
|
});
|
|
|
|
Inject.obj('serverTimezoneOffset', {offset: new Date().getTimezoneOffset()});
|