mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-10 15:31:02 +01:00
add fastapi
This commit is contained in:
30
blank-fastapi-vue-hassio/Makefile
Normal file
30
blank-fastapi-vue-hassio/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
SHELL := /opt/homebrew/bin/fish
|
||||
|
||||
ifneq ("$(wildcard .env)", "")
|
||||
include .env
|
||||
export $(shell sed 's/=.*//' .env)
|
||||
|
||||
else
|
||||
$(shell cp .env.example .env)
|
||||
include .env
|
||||
export $(shell sed 's/=.*//' .env)
|
||||
endif
|
||||
|
||||
ifneq ("$(wildcard .env)", "")
|
||||
$(info $(shell echo "Loading environment variables from .env file..."))
|
||||
$(info $(shell cat .env))
|
||||
$(info $(shell echo "***********************************************"))
|
||||
endif
|
||||
|
||||
export-req:
|
||||
@echo "Exporting requirements..."
|
||||
uv export --no-hashes --format requirements-txt > requirements.txt
|
||||
|
||||
run-dev:
|
||||
@echo "Running server..."
|
||||
uvicorn app.main:app --host localhost --port 8000 --reload
|
||||
|
||||
run:
|
||||
@echo "Running server..."
|
||||
uvicorn app.main:app --host localhost --port 8000
|
||||
@echo "Server running at http://localhost:8000"
|
||||
Reference in New Issue
Block a user