From 9c9ef7b8b6c1e0fe197a5f96052b282470da25e7 Mon Sep 17 00:00:00 2001 From: Berlin Chan Date: Fri, 12 May 2017 13:59:24 +0800 Subject: [PATCH] add comment --- README.md | 2 +- utils/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf8904e..72ea8dc 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ - 备份mongodb:`mongodump -h 127.0.0.1:27017 -d auto-news -o C:\data\backup\` - 恢复mongodb:`mongorestore -h 127.0.0.1:27017 -d auto-news C:\data\backup\auto-news` - 构建docker image:`docker build -t autonews-api .` -- 运行docker image:`docker run -it -p 3090:3090 autonews-api` +- 运行docker image:`docker run -d --name autonews-api-container --restart always -p 3090:3090 autonews-api` - stop all Docker container: `docker stop $(docker ps -a -q)` - remove all Docker container: `docker rm $(docker ps -a -q)` - 使用[qydev.com](http://qydev.com)的内网穿透: `ngrok -config=ngrok.cfg -subdomain autonews 3090` diff --git a/utils/config.js b/utils/config.js index e825f45..b376b71 100644 --- a/utils/config.js +++ b/utils/config.js @@ -5,5 +5,5 @@ module.exports = { HTTP_PORT: 3090,//HTTP server port - DB_SERVER: 'mongodb://localhost:27017/auto-news',// docker: Mac Win + DB_SERVER: 'mongodb://localhost:27017/auto-news',// docker: Mac Win };