Commit 2e9b4a42 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 10f58a8b
......@@ -7,7 +7,7 @@ const cron = require('node-cron');
const cronKill = require('node-cron');
const express = require('express')
const app = express()
const port = 3000
const port = 80
let moment = require('moment-timezone')
const connectionString = 'postgresql://ibs:secretpassword@109.237.27.107:5432/IBSng'
const client = new Client({
......
......@@ -23,7 +23,7 @@ app.get('/', (req, res) => {
})
//client.connect()
app.listen(process.env.PORT || 3000, () => console.log(`Example app listening on port ${port}!`))
refresh()
async function refresh() {
console.log('Try')
const client = new Client({
......
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