Add backend-prod target (debug, 0.0.0.0, 8084)

This commit is contained in:
voje 2019-04-22 23:38:47 +02:00
parent 4a435d5b28
commit 2db0d63269
3 changed files with 14 additions and 0 deletions

View File

@ -27,6 +27,8 @@ include env.local
N_CORES = 5 N_CORES = 5
# insert kres files into database in chunks, for fewer connections # insert kres files into database in chunks, for fewer connections
KRES_CHUNK_SIZE = 30 KRES_CHUNK_SIZE = 30
# Backend parameters found in conf file (see make backend)
export export
.PHONY: python-env fill-database .PHONY: python-env fill-database
@ -107,3 +109,8 @@ backend-dev:
cd ./src/backend_flask; python3 app.py \ cd ./src/backend_flask; python3 app.py \
--config-file ./conf_files/dev_conf.yaml \ --config-file ./conf_files/dev_conf.yaml \
--dbuser $(DB_USR_USER) --dbpass $(DB_USR_PASS) --dbaddr $(DBADDR) --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)

View File

@ -11,6 +11,7 @@ run:
- docker rm $(CNNAME) - docker rm $(CNNAME)
docker run \ docker run \
-it \ -it \
-v $(HOME):$(HOME) \
-v $(MAKE_ROOT):/project \ -v $(MAKE_ROOT):/project \
-w /project \ -w /project \
--net host \ --net host \

View File

@ -0,0 +1,6 @@
---
debug: True
port: 8084
host: 0.0.0.0
logfile: "/var/log/valency_backend.log"
---