...
Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
parent
43114f3f8f
commit
e727a496af
11
app.js
11
app.js
@ -35,7 +35,7 @@ con.connect(err => {
|
|||||||
|
|
||||||
|
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
//if(!isConnected()){res.send("No Connection to database<br>" + JSON.stringify(cause));return}
|
if(!isConnected()){res.send("No Connection to database<br>" + JSON.stringify(cause));return}
|
||||||
res.send("Welcome to the miniplan api!");
|
res.send("Welcome to the miniplan api!");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -146,14 +146,7 @@ var attachToMini = function(mini){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
https.createServer(
|
app.listen(porcess.env.PORT);
|
||||||
{
|
|
||||||
key: fs.readFileSync(process.cwd() + "/private.key"),
|
|
||||||
cert: fs.readFileSync(process.cwd() + "/primary.crt"),
|
|
||||||
ca: fs.readFileSync(process.cwd() + "/mysql-ca.crt")
|
|
||||||
},
|
|
||||||
app
|
|
||||||
).listen(process.env.PORT);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user