22# # Running Python app ##
33# # -------------------------------
44install :
5- pipenv install
5+ poetry install
66
77start :
8- pipenv run gunicorn --workers=2 --threads=8 --bind=0.0.0.0:8080 app:app
8+ poetry run gunicorn --workers=2 --threads=8 --bind=0.0.0.0:8080 app:app
99
1010debug :
11- pipenv run python app.py --verbose --debug
11+ poetry run python app.py --verbose --debug
1212
1313
1414# # -------------------------------
1515# # Running cache app ##
1616# # -------------------------------
1717start-cache :
18- pipenv run python app_cache.py
18+ poetry run python app_cache.py
1919
2020debug-cache :
21- pipenv run python -u app_cache.py --debug
22-
23-
24- # # -------------------------------
25- # # Dev tools ##
26- # # -------------------------------
27- install-dev :
28- pipenv install --dev
29-
21+ poetry run python -u app_cache.py --debug
3022
3123# # -------------------------------
3224# # Docker build/images ##
3325# # -------------------------------
3426docker-pull-yoant-texlive-debian :
3527 docker pull yoant/docker-texlive:debian
3628
37- docker-pull-yoant-texlive-alpine :
38- docker pull yoant/docker-texlive:alpine
39-
4029docker-build-tl-distrib-debian :
4130 docker build -f container/tl-distrib-debian.Dockerfile -t yoant/latexonhttp-tl-distrib:debian .
4231
43- docker-build-tl-distrib-alpine :
44- docker build -f container/tl-distrib-alpine.Dockerfile -t yoant/latexonhttp-tl-distrib:alpine .
45-
4632docker-build-python-debian :
4733 docker build -f container/python-debian.Dockerfile -t yoant/latexonhttp-python:debian .
4834
49- docker-build-python-alpine :
50- docker build -f container/python-alpine.Dockerfile -t yoant/latexonhttp-python:alpine .
51-
5235docker-build-main :
5336 docker build -f Dockerfile .
5437
5538docker-build-all-debian : docker-pull-yoant-texlive-debian docker-build-tl-distrib-debian docker-build-python-debian docker-build-main
5639
57- docker-build-all-alpine : docker-pull-yoant-texlive-alpine docker-build-tl-distrib-alpine docker-build-python-alpine docker-build-main
58-
5940docker-build-all : docker-build-all-debian
6041
6142# # -------------------------------
@@ -72,22 +53,25 @@ docker-push-python-debian:
7253# # Docker Compose for dev ##
7354# # -------------------------------
7455dev :
75- docker-compose -f docker-compose.dev.yml up
56+ docker-compose up
7657
7758dev-build :
78- docker-compose -f docker-compose.dev.yml build --no-cache
59+ docker-compose build --no-cache
7960
8061dev-sh-latex :
81- docker-compose -f docker-compose.dev.yml exec latex /bin/bash
62+ docker-compose exec latex /bin/bash
63+
64+ set-permissions-migrations :
65+ chown -R $(SUDO_USER ) :$(SUDO_USER ) ./tools/migrations
8266
8367# # -------------------------------
8468# # Tests ##
8569# # -------------------------------
8670test :
87- pipenv run pytest -vv
71+ poetry run pytest -vv
8872
8973test-x :
90- pipenv run pytest -vv -x
74+ poetry run pytest -vv -x
9175
9276test-docker-compose : test-docker-compose-start
9377 sleep 3
@@ -121,4 +105,4 @@ test-docker-compose-build-no-cache:
121105# # Code conventions and formatting ##
122106# # -------------------------------
123107format :
124- pipenv run black .
108+ poetry run black .
0 commit comments