File tree 6 files changed +38
-12
lines changed
6 files changed +38
-12
lines changed Original file line number Diff line number Diff line change 34
34
pip install -r requirements.txt
35
35
deactivate
36
36
37
+ # Update image cache instruction
38
+ rm -rf .cron
39
+ python3 -m venv .cron
40
+ source .cron/bin/activate
41
+ pip install --force-reinstall -r scripts/requirements.txt
42
+ sh scripts/schedule_cache.sh
43
+ deactivate
44
+
37
45
# Reload supervisor
38
46
supervisorctl restart flask_app
Original file line number Diff line number Diff line change 37
37
pip install -r requirements.txt
38
38
deactivate
39
39
40
+ # Update image cache instruction
41
+ rm -rf .cron
42
+ python3 -m venv .cron
43
+ source .cron/bin/activate
44
+ pip install --force-reinstall -r scripts/requirements.txt
45
+ sh scripts/schedule_cache.sh
46
+ deactivate
47
+
40
48
# Reload supervisor
41
49
supervisorctl start test_flask_app
Original file line number Diff line number Diff line change 36
36
pip install -r requirements.txt
37
37
deactivate
38
38
39
+ # Update image cache instruction
40
+ rm -rf .cron
41
+ python3 -m venv .cron
42
+ source .cron/bin/activate
43
+ pip install --force-reinstall -r scripts/requirements.txt
44
+ sh scripts/schedule_cache.sh
45
+ deactivate
46
+
39
47
# Stop supervisor
40
48
supervisorctl stop test_flask_app
Original file line number Diff line number Diff line change 5
5
6
6
import json
7
7
import pathlib
8
+ import sys
8
9
9
10
import requests
10
11
26
27
)
27
28
28
29
json_resp = json .loads (resp .content )["data" ]["user" ]
29
- resp_dir = pathlib .Path ("assets/contrib/" )
30
- card_dir = pathlib .Path ("flask_app/static/img/gh_cards/" )
30
+ base_dir = pathlib .Path (sys .argv [1 ])
31
+ resp_dir = base_dir / "assets/contrib/"
32
+ card_dir = base_dir / "flask_app/static/img/gh_cards/"
31
33
resp_dir .mkdir (exist_ok = True )
32
34
card_dir .mkdir (exist_ok = True )
33
35
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # SPDX-FileCopyrightText: 2023 Alec Delaney
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ REPOPATH=$( realpath .)
6
+ JOBNAME=$( echo " $REPOPATH " | xargs basename)
7
+ STATICPATH=" $REPOPATH /flash_app/static"
8
+ COMMAND=" 50 23 * * * python $SCRIPTPATH $REPOPATH "
9
+
10
+ cronberry enter " Cache cards for $JOBNAME " " $COMMAND " --overwrite
You can’t perform that action at this time.
0 commit comments