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
94167dfb
Commit
94167dfb
authored
Sep 05, 2020
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
2e9b4a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.js
app.js
+2
-2
No files found.
app.js
View file @
94167dfb
...
@@ -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
=
8
0
const
port
=
300
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
({
...
@@ -22,7 +22,7 @@ app.get('/', (req, res) => {
...
@@ -22,7 +22,7 @@ app.get('/', (req, res) => {
res
.
sendfile
(
'
ikev2.mobileconfig
'
)
res
.
sendfile
(
'
ikev2.mobileconfig
'
)
})
})
//client.connect()
//client.connect()
app
.
listen
(
process
.
env
.
PORT
||
300
0
,
()
=>
console
.
log
(
`Example app listening on port
${
port
}
!`
))
app
.
listen
(
process
.
env
.
PORT
||
8
0
,
()
=>
console
.
log
(
`Example app listening on port
${
port
}
!`
))
async
function
refresh
()
{
async
function
refresh
()
{
console
.
log
(
'
Try
'
)
console
.
log
(
'
Try
'
)
...
...
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