FitTrackee/Makefile.config

39 lines
1.1 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
2020-09-17 16:08:57 +02:00
export FLASK_APP = $(PWD)/fittrackee/__main__.py
export MIGRATIONS = $(PWD)/fittrackee/migrations
2020-09-19 13:56:14 +02:00
export APP_WORKERS = 1
export WORKERS_PROCESSES = 1
# for dev env
export FLASK_ENV = development
export APP_SETTINGS = fittrackee.config.DevelopmentConfig
export DATABASE_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee
export DATABASE_TEST_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
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
2021-01-02 19:28:03 +01:00
MYPY = $(VENV)/bin/mypy
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
SOURCEDIR = docsrc/source
BUILDDIR = docsrc/build