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')
const fs = require('fs');
const shellExec = require('shell-exec')
const cron = require('node-cron');
let express = require('express');
let app = express();
let server = require('http').createServer(app);
const express = require('express')
const app = express()
const port = 3000
let moment = require('moment-timezone')
const connectionString = 'postgresql://ibs:secretpassword@51.91.150.227:5432/IBSng'
const client = new Client({
......@@ -14,12 +14,8 @@ const client = new Client({
let arr = []
server.listen(80, () => {
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
app.get('/', (req, res) => {
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