-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (35 loc) · 1.22 KB
/
Copy pathjustfile
File metadata and controls
49 lines (35 loc) · 1.22 KB
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
# just files are like makefiles but a bit
# more intuitive to use
# https://github.com/casey/just
@test *options:
pipenv run pytest {{options}}
@install:
#!/usr/bin/env sh
pipenv install --dev
cd theme/static_src/ && npm install && cd ../..
pipenv run python3 manage.py migrate
pipenv run python3 manage.py collectstatic --no-input
@ci:
pipenv run pytest
@fetch-files-from-s3:
pipenv run bash ./scripts/fetch_media_file_from_s3.sh
@serve *options:
pipenv run python3 manage.py runserver {{options}}
@manage *options:
pipenv run python3 manage.py {{options}}
@tailwind-dev:
pipenv run python3 manage.py tailwind start
@tailwind-build:
pipenv run python3 manage.py tailwind build
@run *options:
# run gunicorn in production
pipenv run gunicorn config.wsgi --bind :8000 --workers 2 {{options}}
# pipenv run gunicorn config.wsgi -b :9000 --timeout 300 {{options}}
@docker-build:
# create a docker image, tagged as cl8
docker build . -t cl8
@docker-run:
# run the current local docker image tagged as cl8, using the env file at .env
docker run --env-file .env -p 8000:8000 -p 5432:5432 cl8
@caddy:
caddy run