Skip to content

Commit

Permalink
fix: 权限
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 14, 2024
1 parent edf2da1 commit 4c33ce9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ RUN npm install

# 将你的 Puppeteer 脚本复制到容器中
COPY . .
# 设置 pteer.js 文件的执行权限
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
Expand Down

0 comments on commit 4c33ce9

Please sign in to comment.