FitTrackee/Makefile.config

47 lines
1.2 KiB
Makefile
Raw Normal View History

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
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
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
# Docker env
export DOCKER_APP_DIR = /usr/src/app
export DOCKER_MIGRATIONS = $(DOCKER_APP_DIR)/fittrackee/migrations
2017-12-25 21:17:47 +01:00
# Node env
NODE_MODULES = $(PWD)/fittrackee_client/node_modules
2018-11-18 13:06:04 +01:00
NPM ?= yarn
#Sphinx Docs
SPHINXOPTS ?=
SPHINXBUILD ?= $(VENV)/bin/sphinx-build
2023-06-18 15:23:33 +02:00
SPHINXINTL ?= $(VENV)/bin/sphinx-intl
DOCSRC = docsrc
SOURCEDIR = $(DOCSRC)/source
BUILDDIR = $(DOCSRC)/build
GETTEXT = $(DOCSRC)/gettext
LOCALES_DIRS = $(DOCSRC)/locales