Skip to content

Commit

Permalink
fix: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 11, 2024
1 parent 6c5f69e commit 69b1801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ COPY . .
RUN chmod +x /app/pteer.js

# 创建一个新的 crontab 文件
RUN echo "0 3 * * * node /app/pteer.js >> /var/log/cron.log 2>&1" > /etc/cron.d/puppeteer-cron
RUN echo "0 3 * * * root node /app/pteer.js >> /var/log/cron.log 2>&1" > /etc/cron.d/puppeteer-cron

# 给 crontab 文件适当的权限
RUN chmod 0644 /etc/cron.d/puppeteer-cron
Expand Down

0 comments on commit 69b1801

Please sign in to comment.