Skip to content

Commit 51b9f54

Browse files
author
Joey Yang
committed
update CLI
1 parent 9a72a75 commit 51b9f54

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ todo
4242
### Install
4343
```bash
4444
# by Docker (Recommended)
45-
docker run --restart always -p 3000:3000 -d --name http-adapter code2life/http-adapter:v1
45+
docker run --restart always -p 3000:3000 -d --name http-adapter code2life/http-adapter:v2
46+
# by Docker, mount CONF_PATH
47+
docker run --restart always -p 3000:3000 -d -e CONF_PATH=/conf -v /conf:/conf --name http-adapter code2life/http-adapter:v2
4648

4749
# by Kubernetes
4850
kubectl apply -f https://raw.githubusercontent.com/Code2Life/http-adapter/master/build/kubernetes/deployment.yaml

cli/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function downloadServerCodeAndStart() {
114114

115115
function startServer() {
116116
let server = fork(SERVER_FILE, [], {
117+
env: process.env,
117118
stdio: 'inherit'
118119
});
119120
server.on('exit', (code, signal) => {

0 commit comments

Comments
 (0)