From 2c5abc4d90c8efa87896e223e173353874061ad9 Mon Sep 17 00:00:00 2001 From: lamter Date: Wed, 26 Apr 2017 22:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=20-=20change=20:=20Docker=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=B7=BB=E5=8A=A0=E6=98=A0=E5=B0=84VT=5Fsett?= =?UTF-8?q?ing.json=20=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.docker/server_vnpy.sh | 3 ++- vn.trader/VT_setting.json | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/vn.docker/server_vnpy.sh b/vn.docker/server_vnpy.sh index 6093eb37..b4a8ab99 100755 --- a/vn.docker/server_vnpy.sh +++ b/vn.docker/server_vnpy.sh @@ -3,6 +3,7 @@ cd .. docker run --name vnpy --rm \ -v `pwd`:/srv/vnpy \ + -v `pwd`/../vn.trader/VT_setting.json:/etc/vnpy/VT_setting.json \ -p 2014:2014 -p 602:602 \ vnpy:latest \ - python /srv/vnpy/vn.trader/vtServer.py + python /srv/vnpy/vn.trader/vtServer.py --VT_setting /etc/vnpy/VT_setting.json diff --git a/vn.trader/VT_setting.json b/vn.trader/VT_setting.json index c9bdcc0b..9d90a0a2 100644 --- a/vn.trader/VT_setting.json +++ b/vn.trader/VT_setting.json @@ -5,7 +5,13 @@ "mongoHost": "localhost", "mongoPort": 27017, "mongoLogging": true, + "automongodb": true, "darkStyle": true, - "language": "chinese" + "language": "chinese", + "CTP_connect": null, + "autoctp": true, + + "autoshutdown": true + } \ No newline at end of file