Skip to content

Commit

Permalink
Merge pull request #311 from Tencent/maplemiao
Browse files Browse the repository at this point in the history
feat(docker): do not redirect when single process start and install r…
  • Loading branch information
mapleeit authored May 9, 2019
2 parents 08ade90 + fc28436 commit 4f828a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:10
COPY . /TSW
WORKDIR /TSW
RUN npm install --no-optional
RUN apt-get update && apt-get install gawk
RUN apt-get update && apt-get install gawk rsync
EXPOSE 80
ENV IS_DOCKER=1
CMD ["/TSW/bin/proxy/startup.sh"]
2 changes: 1 addition & 1 deletion bin/proxy/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pwd
IS_DOCKER=${IS_DOCKER:=0}
if [ ${IS_DOCKER} = 1 ]
then
./TSW --expose_internals --no-deprecation $CUR_ARGS ./proxy >> ../log/run.log.0 2>&1
./TSW --expose_internals --no-deprecation $CUR_ARGS ./proxy
else
./TSW --expose_internals --no-deprecation $CUR_ARGS ./proxy >> ../log/run.log.0 2>&1 &
sleep 0.5s
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tswjs/tsw",
"version": "1.3.0",
"version": "1.4.0",
"description": "A Node.js infrastructure which is designed for improving the efficiency of locating problems, providing multiple functions for front-end developers",
"scripts": {
"lint": "eslint examples bin test --fix",
Expand Down

0 comments on commit 4f828a3

Please sign in to comment.