2017-12-25 21:17:47 +01:00
|
|
|
HOST = 0.0.0.0
|
|
|
|
API_PORT = 5000
|
2018-01-07 11:44:56 +01:00
|
|
|
CLIENT_PORT = 3000
|
2017-12-25 21:17:47 +01:00
|
|
|
|
2018-06-07 14:15:27 +02:00
|
|
|
export FLASK_APP = $(PWD)/fittrackee_api/server.py
|
|
|
|
export APP_SETTINGS=fittrackee_api.config.DevelopmentConfig
|
2018-05-01 11:52:38 +02:00
|
|
|
export FLASK_ENV=development
|
2018-01-13 13:00:05 +01:00
|
|
|
export TEST_URL = http://$(HOST):$(CLIENT_PORT)
|
2018-06-07 14:15:27 +02:00
|
|
|
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
|
2018-06-20 13:23:47 +02:00
|
|
|
export PIPENV_VENV_IN_PROJECT=true
|
2017-12-25 21:17:47 +01:00
|
|
|
|
|
|
|
# Python env
|
|
|
|
PYTHON_VERSION ?= python
|
2018-09-09 10:48:32 +02:00
|
|
|
VENV = $(PWD)/.venv
|
2017-12-25 21:17:47 +01:00
|
|
|
PYTHON = $(VENV)/bin/python
|
2018-06-20 13:23:47 +02:00
|
|
|
PIPENV = $(shell command -v pipenv 2> /dev/null)
|
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-06-20 15:27:52 +02:00
|
|
|
GUNICORN = $(VENV)/bin/gunicorn
|
2018-05-12 18:21:00 +02:00
|
|
|
COV = $(VENV)/bin/python-codacy-coverage
|
2017-12-25 21:17:47 +01:00
|
|
|
|
|
|
|
# Node env
|
2018-11-18 13:06:04 +01:00
|
|
|
NODE_MODULES = $(PWD)/node_modules
|
|
|
|
NPM ?= yarn
|
2019-07-14 14:47:07 +02:00
|
|
|
|
|
|
|
#Sphinx Docs
|
|
|
|
SPHINXOPTS ?=
|
|
|
|
SPHINXBUILD ?= $(VENV)/bin/sphinx-build
|
|
|
|
SOURCEDIR = docs/source
|
|
|
|
BUILDDIR = docs/build
|