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
|
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)
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
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