FitTrackee/Makefile.config

27 lines
921 B
Makefile
Raw Normal View History

2017-12-25 21:17:47 +01:00
HOST = 0.0.0.0
API_PORT = 5000
CLIENT_PORT = 3000
2017-12-25 21:17:47 +01:00
2018-01-14 14:41:03 +01:00
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
export TEST_URL = http://$(HOST):$(CLIENT_PORT)
export REQUIREMENTS = $(PWD)/fittrackee_api/requirements.txt
export DATABASE_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee
export DATABASE_TEST_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
export MIGRATIONS = $(PWD)/fittrackee_api/migrations
2017-12-25 21:17:47 +01:00
# Python env
PYTHON_VERSION ?= python
VENV = $(PWD)/fittrackee_api/venv
2017-12-25 21:17:47 +01:00
PYTHON = $(VENV)/bin/python
PIP = $(VENV)/bin/pip
2017-12-25 21:17:47 +01:00
FLASK = $(VENV)/bin/flask
2018-01-14 20:49:35 +01:00
PYTEST = $(VENV)/bin/py.test
2018-05-12 18:21:00 +02:00
COV = $(VENV)/bin/python-codacy-coverage
2017-12-25 21:17:47 +01:00
# Node env
NODE_MODULES = $(PWD)/fittrackee_client/node_modules
NPM ?= yarn --modules-folder fittrackee_client/node_modules/