forked from xtekky/chatgpt-clone
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
80 lines (60 loc) · 1.58 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3'
vars:
GREETING: Hello from Taskfile!
VENV: $HOME/.virtualenvs/django-chatgpt-clone
tasks:
dev:venv:
cmds:
- mkdir -p {{.VENV}}
- python3 -m venv {{.VENV}}
- . {{.VENV}}/bin/activate &&
pip install --upgrade pip setuptools &&
pip install -r requirements/local.txt
dev:init-local-db:
cmds:
- psql postgres --file <(doppler secrets substitute utility/init-db.sql)
dev:cleanup-local-db:
cmds:
- psql postgres --file <(doppler secrets substitute utility/cleanup-db.sql)
dev:tls-certs:
cmds:
- mkcert chatgptclone.local
django:super-user:
cmds:
- doppler run -- ./manage.py createsuperuser
django:make-migrations:
doppler run -- ./manage.py makemigrations
django:migrate:
cmds:
- doppler run -- ./manage.py migrate
django:shell:
cmds:
- doppler run -- ./manage.py shell_plus
django:server:
cmds:
- doppler run -- ./manage.py runserver_plus
server:
cmds:
- doppler run --command='gunicorn config.wsgi:application --bind $HOST:$PORT'
server-tls:
cmds:
- doppler run --command='gunicorn config.wsgi:application --bind $HOST:$PORT --certfile chatgptclone.local.pem --keyfile chatgptclone.local-key.pem'
test:
cmds:
- pytest
checks:mypy:
cmds:
- mypy chatgpt_clone
checks:pylint:
cmds:
- pylint --load-plugins pylint_django ./chatgpt_clone/
checks:flake8:
cmds:
- flake8
checks:black:
cmds:
- black ./
checks:lint-js:
npm run lint
checks:prettier:
npm run prettier