Update stderr and stdout to files with timestamps
This commit is contained in:
parent
7121ab5390
commit
0bdca58d03
@ -5,4 +5,5 @@ WORKDIR /usr/src/app
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
CMD ["/bin/sh", "-c", "node main.js 2> /logs/error.log 1> /logs/silvanus.log"]
|
||||
# CMD ["/bin/sh", "-c", "node main.js 2> /logs/silvanus.err 1> /logs/silvanus.log"]
|
||||
CMD ["/bin/sh", "-c", "node main.js 2> /logs/silvanus-$(date +%Y-%m-%d_%H-%M-%S).err 1> /logs/silvanus-$(date +%Y-%m-%d_%H-%M-%S).log"]
|
||||
|
Loading…
Reference in New Issue
Block a user