Skip to content

Commit

Permalink
fix: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 18, 2024
1 parent e749db7 commit bdd3db0
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 @@ -67,7 +67,7 @@ RUN chmod +x /app/pteer.js

# 创建一个新的脚本文件
RUN echo '#!/bin/bash\n\
/usr/local/bin/node /app/pteer.js >> /var/log/cron.log 2>&1 &\n\
node /app/pteer.js >> /var/log/cron.log 2>&1 &\n\
sleep 10m\n\
pkill -f "node /app/pteer.js"\n' > /app/run_task.sh

Expand Down

0 comments on commit bdd3db0

Please sign in to comment.