FitTrackee/Makefile.config
Sam fd8b51f416 config fix
* FLASK_ENV (new in Flask 1.0)
* eslint config (corrects directories and rules)
* minor fixes
Note: still having problems w/ database used by pytest
2018-05-01 11:54:37 +02:00

26 lines
802 B
Makefile

HOST = 0.0.0.0
API_PORT = 5000
CLIENT_PORT = 3000
export REACT_APP_API_URL = http://$(HOST):$(API_PORT)
export FLASK_APP = $(PWD)/mpwo_api/server.py
export APP_SETTINGS=mpwo_api.config.DevelopmentConfig
export FLASK_ENV=development
export TEST_URL = http://$(HOST):$(CLIENT_PORT)
export REQUIREMENTS = $(PWD)/mpwo_api/requirements.txt
export DATABASE_URL = postgres://mpwo:mpwo@$(HOST):5432/mpwo
export DATABASE_TEST_URL = postgres://mpwo:mpwo@$(HOST):5432/mpwo_test
export MIGRATIONS = $(PWD)/mpwo_api/migrations
# Python env
PYTHON_VERSION ?= python
VENV = $(PWD)/mpwo_api/venv
PYTHON = $(VENV)/bin/python
PIP = $(VENV)/bin/pip
FLASK = $(VENV)/bin/flask
PYTEST = $(VENV)/bin/py.test
# Node env
NODE_MODULES = $(PWD)/mpwo_client/node_modules
NPM ?= yarn --modules-folder mpwo_client/node_modules/