madefiles to make files
@ -0,0 +1,2 @@
|
||||
GESTURE_APPLICATION_ROOT=/breadcube/gesture
|
||||
GESTURE_PORTNUMBER=5002
|
@ -0,0 +1,10 @@
|
||||
include .env
|
||||
export
|
||||
|
||||
default: local
|
||||
|
||||
local:
|
||||
@flask run --debug
|
||||
|
||||
breadcube:
|
||||
@SCRIPT_NAME=${GESTURE_APPLICATION_ROOT} gunicorn -b localhost:${GESTURE_PORTNUMBER} --reload app:app
|
@ -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('GESTURE_APPLICATION_ROOT', '/')
|
||||
PORTNUMBER = int(os.environ.get('GESTURE_PORTNUMBER', 5001))
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 3.2 MiB |