Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Add pm2-logrotate module to rotate pm2 logs. #55

Merged
merged 1 commit into from
Jul 26, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ WORKDIR /tmp
ADD package.json package.json
RUN npm install
RUN npm install -g pm2

# pm2 logrotate module to automatically rotate logs
RUN pm2 install pm2-logrotate
RUN pm2 set pm2-logrotate:interval_unit 'mm'
RUN pm2 set pm2-logrotate:interval 60

RUN mkdir /quran
RUN cp -a /tmp/node_modules /quran

Expand Down