Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ikve2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ikve2
Commits
2e9b4a42
Commit
2e9b4a42
authored
Sep 05, 2020
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
10f58a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app.js
app.js
+1
-1
test.js
test.js
+1
-1
No files found.
app.js
View file @
2e9b4a42
...
@@ -7,7 +7,7 @@ const cron = require('node-cron');
...
@@ -7,7 +7,7 @@ const cron = require('node-cron');
const
cronKill
=
require
(
'
node-cron
'
);
const
cronKill
=
require
(
'
node-cron
'
);
const
express
=
require
(
'
express
'
)
const
express
=
require
(
'
express
'
)
const
app
=
express
()
const
app
=
express
()
const
port
=
300
0
const
port
=
8
0
let
moment
=
require
(
'
moment-timezone
'
)
let
moment
=
require
(
'
moment-timezone
'
)
const
connectionString
=
'
postgresql://ibs:secretpassword@109.237.27.107:5432/IBSng
'
const
connectionString
=
'
postgresql://ibs:secretpassword@109.237.27.107:5432/IBSng
'
const
client
=
new
Client
({
const
client
=
new
Client
({
...
...
test.js
View file @
2e9b4a42
...
@@ -23,7 +23,7 @@ app.get('/', (req, res) => {
...
@@ -23,7 +23,7 @@ app.get('/', (req, res) => {
})
})
//client.connect()
//client.connect()
app
.
listen
(
process
.
env
.
PORT
||
3000
,
()
=>
console
.
log
(
`Example app listening on port
${
port
}
!`
))
app
.
listen
(
process
.
env
.
PORT
||
3000
,
()
=>
console
.
log
(
`Example app listening on port
${
port
}
!`
))
refresh
()
async
function
refresh
()
{
async
function
refresh
()
{
console
.
log
(
'
Try
'
)
console
.
log
(
'
Try
'
)
const
client
=
new
Client
({
const
client
=
new
Client
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment