Fixed not connecting to email
This commit is contained in:
@ -25,7 +25,8 @@
|
|||||||
const
|
const
|
||||||
Configuration = require('./../config/Configuration'),
|
Configuration = require('./../config/Configuration'),
|
||||||
DatabaseConnection = require('./../database/DatabaseConnection'),
|
DatabaseConnection = require('./../database/DatabaseConnection'),
|
||||||
Server = require('./../server/Server')
|
Server = require('./../server/Server'),
|
||||||
|
Email = require('./../email/Email')
|
||||||
;
|
;
|
||||||
|
|
||||||
class App {
|
class App {
|
||||||
@ -33,12 +34,14 @@ class App {
|
|||||||
this.config = new Configuration(this);
|
this.config = new Configuration(this);
|
||||||
this.database = new DatabaseConnection(this);
|
this.database = new DatabaseConnection(this);
|
||||||
this.server = new Server(this);
|
this.server = new Server(this);
|
||||||
|
this.email = new Email(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
getConfig() { return this.config; }
|
getConfig() { return this.config; }
|
||||||
getDiscord() { return this.discord; }
|
getDiscord() { return this.discord; }
|
||||||
getDatabase() { return this.database; }
|
getDatabase() { return this.database; }
|
||||||
getPalaise() { return this.palaise; }
|
getPalaise() { return this.palaise; }
|
||||||
|
getEmail() {return this.email;}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
this.log('Starting App...');
|
this.log('Starting App...');
|
||||||
@ -63,6 +66,16 @@ class App {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Connect to Email
|
||||||
|
this.log('Connecting to Email...');
|
||||||
|
try {
|
||||||
|
this.email.connect();
|
||||||
|
} catch(e) {
|
||||||
|
this.error('Failed to connect to email!');
|
||||||
|
this.error(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Start the server
|
//Start the server
|
||||||
this.log('Starting Server...');
|
this.log('Starting Server...');
|
||||||
try {
|
try {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>domsPlace - Personal Site of Dominic Masters</title>
|
<title>domsPlace - Personal Site of Dominic Masters</title>
|
||||||
|
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="keywords" content="domsplace, programming, gaming, anime, livestreaming, dominic, masters, dom" />
|
<meta name="keywords" content="domsplace, programming, gaming, anime, livestreaming, dominic, masters, dom" />
|
||||||
@ -11,8 +12,8 @@
|
|||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-66393210-1"></script>
|
<script type="text/javascript" async src="https://www.googletagmanager.com/gtag/js?id=UA-66393210-1"></script>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
Reference in New Issue
Block a user