2020-09-19 13:56:14 +02:00
|
|
|
export HOST = 0.0.0.0
|
|
|
|
export PORT = 5000
|
|
|
|
export CLIENT_PORT = 3000
|
2017-12-25 21:17:47 +01:00
|
|
|
|
2020-09-16 15:41:02 +02:00
|
|
|
export MIGRATIONS = $(PWD)/fittrackee/migrations
|
2020-09-19 13:56:14 +02:00
|
|
|
export APP_WORKERS = 1
|
|
|
|
export WORKERS_PROCESSES = 1
|
|
|
|
|
|
|
|
# for dev env
|
2022-11-26 12:54:56 +01:00
|
|
|
export FLASK_DEBUG = 1
|
2021-04-06 13:15:26 +02:00
|
|
|
export DATABASE_TEST_URL = postgresql://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
|
2020-09-19 13:56:14 +02:00
|
|
|
export TEST_APP_URL = http://$(HOST):$(PORT)
|
|
|
|
export TEST_CLIENT_URL = http://$(HOST):$(CLIENT_PORT)
|
|
|
|
export REACT_APP_API_URL= $(TEST_APP_URL)
|
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
|
2019-08-28 11:48:30 +02:00
|
|
|
POETRY = poetry
|
2017-12-25 21:17:47 +01:00
|
|
|
FLASK = $(VENV)/bin/flask
|
2019-08-28 13:15:22 +02:00
|
|
|
PYTEST = $(VENV)/bin/py.test -c pyproject.toml -W ignore::DeprecationWarning
|
2018-06-20 15:27:52 +02:00
|
|
|
GUNICORN = $(VENV)/bin/gunicorn
|
2019-08-28 13:15:22 +02:00
|
|
|
BLACK = $(VENV)/bin/black
|
2023-06-14 20:58:47 +02:00
|
|
|
FLAKE8 = $(VENV)/bin/flake8
|
2021-01-02 19:28:03 +01:00
|
|
|
MYPY = $(VENV)/bin/mypy
|
2022-05-28 20:01:14 +02:00
|
|
|
BANDIT = $(VENV)/bin/bandit
|
2022-07-02 19:25:07 +02:00
|
|
|
PYBABEL = $(VENV)/bin/pybabel
|
2022-04-23 11:21:14 +02:00
|
|
|
FTCLI = $(VENV)/bin/ftcli
|
2017-12-25 21:17:47 +01:00
|
|
|
|
2022-10-25 23:27:05 +02:00
|
|
|
# Docker env
|
|
|
|
export DOCKER_APP_DIR = /usr/src/app
|
|
|
|
export DOCKER_MIGRATIONS = $(DOCKER_APP_DIR)/fittrackee/migrations
|
|
|
|
export DOCKER_FLASK = /usr/local/bin/flask
|
|
|
|
export DOCKER_FTCLI = /usr/local/bin/ftcli
|
2022-10-26 01:38:55 +02:00
|
|
|
export DOCKER_BANDIT = /usr/local/bin/bandit
|
|
|
|
export DOCKER_MYPY = /usr/local/bin/mypy
|
2022-10-25 23:27:05 +02:00
|
|
|
|
2017-12-25 21:17:47 +01:00
|
|
|
# Node env
|
2020-09-16 16:00:25 +02:00
|
|
|
NODE_MODULES = $(PWD)/fittrackee_client/node_modules
|
2018-11-18 13:06:04 +01:00
|
|
|
NPM ?= yarn
|
2019-07-14 14:47:07 +02:00
|
|
|
|
|
|
|
#Sphinx Docs
|
2020-09-16 16:00:25 +02:00
|
|
|
SPHINXOPTS ?=
|
|
|
|
SPHINXBUILD ?= $(VENV)/bin/sphinx-build
|
|
|
|
SOURCEDIR = docsrc/source
|
|
|
|
BUILDDIR = docsrc/build
|