Merge pull request #110 from iouAkira/patch-1

因为签到文件下载目录调整,request依赖的安装路径也需要调整
This commit is contained in:
lxk0301
2020-11-17 11:55:59 +08:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ RUN git clone https://github.com/lxk0301/jd_scripts /scripts \
&& cd /scripts \ && cd /scripts \
&& mkdir logs \ && mkdir logs \
&& npm install \ && npm install \
&& cd ~ \ && cd /tmp \
&& npm install request && npm install request
ENV CRONTAB_LIST_FILE crontab_list_ts.sh ENV CRONTAB_LIST_FILE crontab_list_ts.sh

View File

@@ -1,6 +1,7 @@
0 */1 * * * git -C /scripts/ pull >> /scripts/logs/pull.log 2>&1 0 */1 * * * git -C /scripts/ pull >> /scripts/logs/pull.log 2>&1
2 */1 * * * crontab /scripts/docker/${CRONTAB_LIST_FILE} 2 */1 * * * crontab /scripts/docker/${CRONTAB_LIST_FILE}
3 */1 * * * npm install --prefix /scripts >> /scripts/logs/npm_install.log 2>&1 3 */1 * * * npm install --prefix /scripts >> /scripts/logs/npm_install.log 2>&1
4 */1 * * * npm install request --prefix /tmp >> /scripts/logs/npm_install_request.log 2>&1
# 每3天的23:50分清理一次日志 # 每3天的23:50分清理一次日志
50 23 */3 * * rm -rf /scripts/logs/*.log 50 23 */3 * * rm -rf /scripts/logs/*.log
@@ -44,7 +45,7 @@
# 取关京东店铺商品 # 取关京东店铺商品
55 23 * * * node /scripts/jd_unsubscribe.js >> /scripts/logs/jd_unsubscribe.log 2>&1 55 23 * * * node /scripts/jd_unsubscribe.js >> /scripts/logs/jd_unsubscribe.log 2>&1
# 京豆变动通知 # 京豆变动通知
0 2 * * * node /scripts/jd_bean_change.js >> /scripts/logs/jd_bean_change.log 2>&1 0 10 * * * node /scripts/jd_bean_change.js >> /scripts/logs/jd_bean_change.log 2>&1
# 京东抽奖机 # 京东抽奖机
11 1 * * * node /scripts/jd_lotteryMachine.js >> /scripts/logs/jd_lotteryMachine.log 2>&1 11 1 * * * node /scripts/jd_lotteryMachine.js >> /scripts/logs/jd_lotteryMachine.log 2>&1
# 京东排行榜 # 京东排行榜

View File

@@ -1,6 +1,7 @@
0 */1 * * * git -C /scripts/ pull |ts >> /scripts/logs/pull.log 2>&1 0 */1 * * * git -C /scripts/ pull |ts >> /scripts/logs/pull.log 2>&1
2 */1 * * * crontab /scripts/docker/${CRONTAB_LIST_FILE} 2 */1 * * * crontab /scripts/docker/${CRONTAB_LIST_FILE}
3 */1 * * * npm install --prefix /scripts |ts >> /scripts/logs/npm_install.log 2>&1 3 */1 * * * npm install --prefix /scripts |ts >> /scripts/logs/npm_install.log 2>&1
4 */1 * * * npm install request --prefix /tmp |ts >> /scripts/logs/npm_install_request.log 2>&1
# 每3天的23:50分清理一次日志 # 每3天的23:50分清理一次日志
50 23 */3 * * rm -rf /scripts/logs/*.log 50 23 */3 * * rm -rf /scripts/logs/*.log
@@ -44,7 +45,7 @@
# 取关京东店铺商品 # 取关京东店铺商品
55 23 * * * node /scripts/jd_unsubscribe.js |ts >> /scripts/logs/jd_unsubscribe.log 2>&1 55 23 * * * node /scripts/jd_unsubscribe.js |ts >> /scripts/logs/jd_unsubscribe.log 2>&1
# 京豆变动通知 # 京豆变动通知
0 2 * * * node /scripts/jd_bean_change.js |ts >> /scripts/logs/jd_bean_change.log 2>&1 0 10 * * * node /scripts/jd_bean_change.js |ts >> /scripts/logs/jd_bean_change.log 2>&1
# 京东抽奖机 # 京东抽奖机
11 1 * * * node /scripts/jd_lotteryMachine.js |ts >> /scripts/logs/jd_lotteryMachine.log 2>&1 11 1 * * * node /scripts/jd_lotteryMachine.js |ts >> /scripts/logs/jd_lotteryMachine.log 2>&1
# 京东排行榜 # 京东排行榜