Fix log overwriting error
Some checks failed
NodBot Production Dockerization / build (pull_request) Has been cancelled
Some checks failed
NodBot Production Dockerization / build (pull_request) Has been cancelled
This commit is contained in:
parent
d61ffbaaf7
commit
545756b762
@ -5,4 +5,5 @@ WORKDIR /usr/src/app
|
|||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"]
|
# CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"]
|
||||||
|
CMD ["/bin/sh", "-c", "node src/main.js 2> /logs/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"]
|
Loading…
Reference in New Issue
Block a user