Commit acee8076 authored by ganjingcun's avatar ganjingcun

change psql host

parent f4423a21
......@@ -15,8 +15,8 @@ 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
host: 'rm-bp15014uvga7994tzo.pg.rds.aliyuncs.com', // Server hosting the postgres database
port: 3432, //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
}
......
......@@ -4,8 +4,8 @@ var superagent = require('superagent')
// var url = 'https://mycard.moe/ygopro/api/score'
var url = 'http://localhost:3000/api/score'
var url = 'https://mycard.moe/ygopro/api/score'
// var url = 'http://localhost:3000/api/score'
superagent
.post(url)
.send({
......
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