Skip to content

Commit

Permalink
chore:cron and gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Aug 20, 2024
1 parent b64a14a commit b41be96
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 288 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ RUN if [ "$INSTALL_CHROMIUM" = "true" ]; then \
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN (crontab -l ; \
echo "0 22 * * * cd $APP_WORKDIR && /usr/local/bin/pipenv run python main.py scheduled_task 2>&1 | tee -a /var/log/tv.log"; \
echo "0 10 * * * cd $APP_WORKDIR && /usr/local/bin/pipenv run python main.py scheduled_task 2>&1 | tee -a /var/log/tv.log") | crontab -
echo "0 22 * * * cd $APP_WORKDIR && /usr/local/bin/pipenv run python main.py scheduled_task"; \
echo "0 10 * * * cd $APP_WORKDIR && /usr/local/bin/pipenv run python main.py scheduled_task") | crontab -

EXPOSE 8000

Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ aiohttp = "*"
flask = "*"
opencc-python-reimplemented = "*"
fake-useragent = "*"
gunicorn = "*"

[requires]
python_version = "3.8"
Loading

0 comments on commit b41be96

Please sign in to comment.