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
d889ab1c
Commit
d889ab1c
authored
Mar 02, 2017
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove db config
parent
9b5ab583
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
.gitignore
.gitignore
+1
-1
routes/api.js
routes/api.js
+2
-9
No files found.
.gitignore
View file @
d889ab1c
...
...
@@ -5,4 +5,4 @@ npm-debug.log
selenium-debug.log
test/unit/coverage
test/e2e/reports
db.config.js
routes/api.js
View file @
d889ab1c
...
...
@@ -13,15 +13,8 @@ var sqlite3 = require('sqlite3').verbose();
// and client options
// note: all config is optional and the environment variables
// will be read if the config is not present
var
config
=
{
user
:
'
mycard
'
,
//env var: PGUSER
database
:
'
ygopro
'
,
//env var: PGDATABASE
password
:
'
dn8aSm9yAJx23qWn
'
,
//env var: PGPASSWORD
host
:
'
postgres.mycard.moe
'
,
// Server hosting the postgres database
port
:
5432
,
//env var: PGPORT
max
:
10
,
// max number of clients in the pool
idleTimeoutMillis
:
30000
,
// how long a client is allowed to remain idle before being closed
}
var
config
=
require
(
'
../db.config
'
)
//this initializes a connection pool
//it will keep idle connections open for a 30 seconds
...
...
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