2022-10-30 21:27:36 +01:00
|
|
|
#! make
|
2022-10-30 15:28:03 +01:00
|
|
|
|
2022-12-01 18:30:19 +01:00
|
|
|
include .env
|
|
|
|
export
|
|
|
|
|
|
|
|
default: local
|
2022-01-12 21:27:06 +01:00
|
|
|
|
|
|
|
setup:
|
2022-10-02 11:37:07 +02:00
|
|
|
@if [ ! -d ".venv" ]; then python3 -m venv .venv && .venv/bin/pip install -r requirements.txt; fi
|
2022-01-12 21:27:06 +01:00
|
|
|
|
2022-12-01 18:30:19 +01:00
|
|
|
local:
|
|
|
|
@.venv/bin/python octomode.py
|
|
|
|
|
|
|
|
action:
|
2023-11-29 17:01:38 +01:00
|
|
|
@if [ ! -f ".venv/bin/gunicorn" ]; then .venv/bin/pip install gunicorn; fi
|
2023-11-30 14:41:07 +01:00
|
|
|
@SCRIPT_NAME=${OCTOMODE_APPLICATION_ROOT} .venv/bin/gunicorn --error-logfile error.log --capture-output -b localhost:${OCTOMODE_PORTNUMBER} --reload octomode:APP
|