Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-arena-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-arena-api
Commits
acee8076
Commit
acee8076
authored
Feb 17, 2017
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change psql host
parent
f4423a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
routes/api.js
routes/api.js
+2
-2
test.js
test.js
+2
-2
No files found.
routes/api.js
View file @
acee8076
...
@@ -15,8 +15,8 @@ var config = {
...
@@ -15,8 +15,8 @@ var config = {
user
:
'
mycard
'
,
//env var: PGUSER
user
:
'
mycard
'
,
//env var: PGUSER
database
:
'
ygopro
'
,
//env var: PGDATABASE
database
:
'
ygopro
'
,
//env var: PGDATABASE
password
:
'
dn8aSm9yAJx23qWn
'
,
//env var: PGPASSWORD
password
:
'
dn8aSm9yAJx23qWn
'
,
//env var: PGPASSWORD
host
:
'
postgres.mycard.moe
'
,
// Server hosting the postgres database
host
:
'
rm-bp15014uvga7994tzo.pg.rds.aliyuncs.com
'
,
// Server hosting the postgres database
port
:
5
432
,
//env var: PGPORT
port
:
3
432
,
//env var: PGPORT
max
:
10
,
// max number of clients in the pool
max
:
10
,
// max number of clients in the pool
idleTimeoutMillis
:
30000
,
// how long a client is allowed to remain idle before being closed
idleTimeoutMillis
:
30000
,
// how long a client is allowed to remain idle before being closed
}
}
...
...
test.js
View file @
acee8076
...
@@ -4,8 +4,8 @@ var superagent = require('superagent')
...
@@ -4,8 +4,8 @@ var superagent = require('superagent')
//
var url = 'https://mycard.moe/ygopro/api/score'
var
url
=
'
https://mycard.moe/ygopro/api/score
'
var
url
=
'
http://localhost:3000/api/score
'
//
var url = 'http://localhost:3000/api/score'
superagent
superagent
.
post
(
url
)
.
post
(
url
)
.
send
({
.
send
({
...
...
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