adding gunicorn magic
parent
6307605d46
commit
2553ad099b
@ -0,0 +1,10 @@
|
|||||||
|
include .env
|
||||||
|
export
|
||||||
|
|
||||||
|
default: local
|
||||||
|
|
||||||
|
local:
|
||||||
|
@flask run --debug
|
||||||
|
|
||||||
|
breadcube:
|
||||||
|
@SCRIPT_NAME=${OVERLAP_APPLICATION_ROOT} gunicorn -b localhost:${OVERLAP_PORTNUMBER} --reload app:app
|
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
Flask==2.3.2
|
||||||
|
gunicorn==20.1.0
|
||||||
|
Jinja2==3.1.2
|
||||||
|
python-dotenv==1.0.0
|
@ -0,0 +1,10 @@
|
|||||||
|
import os
|
||||||
|
from dotenv import main
|
||||||
|
|
||||||
|
# Load environment variables from the .env file
|
||||||
|
main.load_dotenv()
|
||||||
|
|
||||||
|
# Bind them to Python variables
|
||||||
|
APPLICATION_ROOT = os.environ.get('OVERLAP_APPLICATION_ROOT', '/')
|
||||||
|
PORTNUMBER = int(os.environ.get('OVERLAP_PORTNUMBER', 5001))
|
||||||
|
|
Loading…
Reference in New Issue