Makefile update

This commit is contained in:
Sam 2018-07-01 15:41:23 +02:00
parent 48538a63e1
commit c4877046ab
4 changed files with 8 additions and 3 deletions

5
.gitignore vendored
View File

@ -36,3 +36,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.eslintcache
# ALL
###############
*.log
nohup.out

View File

@ -49,10 +49,10 @@ run:
$(MAKE) P="run-server run-client" make-p
run-client:
serve -s fittrackee_client/build -l 3000
serve -s fittrackee_client/build -l 3000 >> serve.log 2>&1
run-server:
cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()"
cd fittrackee_api && $(GUNICORN) -b 127.0.0.1:5000 "fittrackee_api:create_app()" --error-logfile ../gunicorn-error.log
serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)

View File

@ -2,7 +2,6 @@ HOST = 0.0.0.0
API_PORT = 5000
CLIENT_PORT = 3000
export REACT_APP_API_URL = http://$(HOST):$(API_PORT)
export FLASK_APP = $(PWD)/fittrackee_api/server.py
export APP_SETTINGS=fittrackee_api.config.DevelopmentConfig
export FLASK_ENV=development

View File

@ -1,3 +1,4 @@
export REACT_APP_API_URL = http://$(HOST):$(API_PORT)
export REACT_APP_THUNDERFOREST_API_KEY=
export WEATHER_API=