Better logging output

This commit is contained in:
Skylar Grant 2023-05-08 09:46:21 -04:00
parent 428cbc1597
commit 1cb5e94145

View File

@ -6,4 +6,4 @@ COPY package.json ./
RUN npm install RUN npm install
COPY . . COPY . .
# 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.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"] CMD ["/bin/sh", "-c", "node main.js 2> /logs/silvanus-stderr-$(date +%Y-%m-%d_%H-%M-%S).log 1> /logs/silvanus-stdout-$(date +%Y-%m-%d_%H-%M-%S).log"]