Commit 6d38c373 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent d0616e03
Pipeline #51 canceled with stages
...@@ -3,9 +3,9 @@ let _ = require('lodash') ...@@ -3,9 +3,9 @@ let _ = require('lodash')
const fs = require('fs'); const fs = require('fs');
const shellExec = require('shell-exec') const shellExec = require('shell-exec')
const cron = require('node-cron'); const cron = require('node-cron');
let express = require('express'); const express = require('express')
let app = express(); const app = express()
let server = require('http').createServer(app); const port = 3000
let moment = require('moment-timezone') let moment = require('moment-timezone')
const connectionString = 'postgresql://ibs:secretpassword@51.91.150.227:5432/IBSng' const connectionString = 'postgresql://ibs:secretpassword@51.91.150.227:5432/IBSng'
const client = new Client({ const client = new Client({
...@@ -14,12 +14,8 @@ const client = new Client({ ...@@ -14,12 +14,8 @@ const client = new Client({
let arr = [] let arr = []
server.listen(80, () => {
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
app.get('/', (req, res) => { app.get('/', (req, res) => {
res.sendfile('config.mobileconfig') res.sendfile('config.mobileconfig')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment