-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·40 lines (29 loc) · 822 Bytes
/
makefile
File metadata and controls
executable file
·40 lines (29 loc) · 822 Bytes
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
freeze:
@echo "Updating requirements:"
@pip freeze | grep -v "pkg-resources\|de-core-news-sm" > requirements.txt
@echo "https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-2.3.0/de_core_news_sm-2.3.0.tar.gz" >> requirements.txt
deploy:
@echo "Starting deployment - via docker container push:"
@heroku container:push web –app zeitung-plus
clean:
@echo "Cleaning project:"
@py3clean .
test:
@echo "Testing:"
@python -m pytest test.py
lint:
@echo "Linting:"
@python -m pylint app.py API.py
run:
flask run
docker-build:
@echo "Building docker file:"
docker build -t flask-heroku:latest .
docker-run:
@echo "Running docker:"
docker run -d -p 5000:5000 flask-heroku
docker-compose:
@echo "Composing:"
docker-compose up
docker-id:
@docker ps | sed -n 2p | cut -f 1 -d " "