document run server workflow
This commit is contained in:
@@ -2,7 +2,7 @@ SHELL := /bin/sh
|
||||
|
||||
BUF ?= buf
|
||||
|
||||
.PHONY: buf-lint buf-generate py-sync go-test compose-up compose-up-dev
|
||||
.PHONY: buf-lint buf-generate py-sync go-test compose-up compose-up-dev run-server
|
||||
|
||||
buf-lint:
|
||||
$(BUF) lint
|
||||
@@ -21,3 +21,17 @@ compose-up:
|
||||
|
||||
compose-up-dev:
|
||||
docker compose --env-file .env.example -f deploy/docker-compose.dev.yml up
|
||||
|
||||
run-server:
|
||||
@set -a; \
|
||||
if [ -f .env ]; then . ./.env; fi; \
|
||||
set +a; \
|
||||
export PYTHONPATH="$${PYTHONPATH:-gen/python:python/packages/officeconvert/src:python/packages/server/src}"; \
|
||||
export MINIO_ENDPOINT="$${MINIO_ENDPOINT:-localhost:9000}"; \
|
||||
export MINIO_PUBLIC_ENDPOINT="$${MINIO_PUBLIC_ENDPOINT:-localhost:9000}"; \
|
||||
export MINIO_USE_SSL="$${MINIO_USE_SSL:-false}"; \
|
||||
export MINIO_ACCESS_KEY="$${MINIO_ACCESS_KEY:-minioadmin}"; \
|
||||
export MINIO_SECRET_KEY="$${MINIO_SECRET_KEY:-minioadmin}"; \
|
||||
export MINIO_SESSION_TTL_SECONDS="$${MINIO_SESSION_TTL_SECONDS:-3600}"; \
|
||||
export CONVERSION_CLEANUP_DELAY_SECONDS="$${CONVERSION_CLEANUP_DELAY_SECONDS:-3600}"; \
|
||||
uv run --project python uvicorn officeconvert_server.app:app --host "$${UVICORN_HOST:-0.0.0.0}" --port "$${UVICORN_PORT:-8080}"
|
||||
|
||||
Reference in New Issue
Block a user