salix/print/server.js

15 lines
272 B
JavaScript
Raw Normal View History

2019-01-22 08:55:35 +00:00
module.exports = app => {
global.appPath = __dirname;
process.env.OPENSSL_CONF = '/etc/ssl/';
// Init database instance
2019-01-23 08:33:58 +00:00
require('./lib/database').init();
2019-01-22 08:55:35 +00:00
// Init SMTP Instance
2019-01-23 08:33:58 +00:00
require('./lib/smtp').init();
2019-01-22 08:55:35 +00:00
require('./lib/router')(app);
};