No description
- Python 91.4%
- HTML 4.7%
- Shell 2.6%
- Dockerfile 1.3%
|
All checks were successful
test / test (push) Successful in 1m23s
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github/workflows | ||
| aquila | ||
| tests | ||
| .gitignore | ||
| Dockerfile | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| renovate.json | ||
| style.sh | ||
| wsgi.py | ||
Aquila
Microsite for providing access to reward's info to the end user.
Install
poetry install- create
.envor .settings.inifile in the root folder and fill in the required env vars fromaquila/settings.py
Running (DEV)
- Polaris API must be running and the
POLARIS_HOSTenv var should point to it. BLOB_STORAGE_DSNenv var must be providedpoetry run python wsgi.py
Running with prometheus metrics
- run
PROMETHEUS_MULTIPROC_DIR=/tmp OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES gunicorn --bind=0.0.0.0:[PROJECT_PORT] --bind=0.0.0.0:9100 wsgi:app - or run as normal with
METRICS_DEBUGset toTrue
Usage
- send http
GETrequest to[host][port]/reward?retailer=[retailer_slug]$reward=[reward_uuid]
NB
- Aquila's
/readyzendpoint will check for the existance of aheathzfile in the blob storage and will try to contact polaris'/livezendpoint. - Aquila implements dynamic versioning so please leave the
__version__set to"0.0.0"