forked from kristjan/cjvt-valency
Add backend-prod target (debug, 0.0.0.0, 8084)
This commit is contained in:
parent
4a435d5b28
commit
2db0d63269
7
Makefile
7
Makefile
|
@ -27,6 +27,8 @@ include env.local
|
|||
N_CORES = 5
|
||||
# insert kres files into database in chunks, for fewer connections
|
||||
KRES_CHUNK_SIZE = 30
|
||||
|
||||
# Backend parameters found in conf file (see make backend)
|
||||
export
|
||||
|
||||
.PHONY: python-env fill-database
|
||||
|
@ -107,3 +109,8 @@ backend-dev:
|
|||
cd ./src/backend_flask; python3 app.py \
|
||||
--config-file ./conf_files/dev_conf.yaml \
|
||||
--dbuser $(DB_USR_USER) --dbpass $(DB_USR_PASS) --dbaddr $(DBADDR)
|
||||
|
||||
backend-prod:
|
||||
cd ./src/backend_flask; python3 app.py \
|
||||
--config-file ./conf_files/prod_conf.yaml \
|
||||
--dbuser $(DB_USR_USER) --dbpass $(DB_USR_PASS) --dbaddr $(DBADDR)
|
||||
|
|
|
@ -11,6 +11,7 @@ run:
|
|||
- docker rm $(CNNAME)
|
||||
docker run \
|
||||
-it \
|
||||
-v $(HOME):$(HOME) \
|
||||
-v $(MAKE_ROOT):/project \
|
||||
-w /project \
|
||||
--net host \
|
||||
|
|
6
src/backend_flask/conf_files/prod_conf.yaml
Normal file
6
src/backend_flask/conf_files/prod_conf.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
debug: True
|
||||
port: 8084
|
||||
host: 0.0.0.0
|
||||
logfile: "/var/log/valency_backend.log"
|
||||
---
|
Loading…
Reference in New Issue
Block a user