Rebrand: Rename project from Apoklisis to Patherly
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Application
|
||||
APP_NAME=Troubleshooting Decision Tree
|
||||
APP_NAME=Patherly
|
||||
DEBUG=true
|
||||
|
||||
# Database
|
||||
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/decision_tree
|
||||
DATABASE_URL_SYNC=postgresql://postgres:postgres@localhost:5432/decision_tree
|
||||
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/patherly
|
||||
DATABASE_URL_SYNC=postgresql://postgres:postgres@localhost:5432/patherly
|
||||
|
||||
# JWT Settings - CHANGE THESE IN PRODUCTION
|
||||
# Generate with: openssl rand -hex 32
|
||||
|
||||
@@ -3,7 +3,7 @@ script_location = alembic
|
||||
prepend_sys_path = .
|
||||
version_path_separator = os
|
||||
|
||||
sqlalchemy.url = postgresql://postgres:postgres@localhost:5432/decision_tree
|
||||
sqlalchemy.url = postgresql://postgres:postgres@localhost:5432/patherly
|
||||
|
||||
[post_write_hooks]
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@ from typing import Optional
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# Application
|
||||
APP_NAME: str = "Troubleshooting Decision Tree"
|
||||
APP_NAME: str = "Patherly"
|
||||
DEBUG: bool = False
|
||||
API_V1_PREFIX: str = "/api/v1"
|
||||
|
||||
# Database
|
||||
DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/decision_tree"
|
||||
DATABASE_URL_SYNC: str = "postgresql://postgres:postgres@localhost:5432/decision_tree"
|
||||
DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/patherly"
|
||||
DATABASE_URL_SYNC: str = "postgresql://postgres:postgres@localhost:5432/patherly"
|
||||
|
||||
# JWT Settings
|
||||
SECRET_KEY: str = "your-secret-key-change-in-production-use-openssl-rand-hex-32"
|
||||
|
||||
@@ -18,18 +18,18 @@ logger = logging.getLogger(__name__)
|
||||
async def lifespan(app: FastAPI):
|
||||
"""Application lifespan handler."""
|
||||
# Startup
|
||||
logger.info("Starting Apoklisis API server...")
|
||||
logger.info("Starting Patherly API server...")
|
||||
logger.info(f"Environment: {'Development' if settings.DEBUG else 'Production'}")
|
||||
# Note: In production, use Alembic migrations instead of init_db
|
||||
# await init_db()
|
||||
yield
|
||||
# Shutdown
|
||||
logger.info("Shutting down Apoklisis API server...")
|
||||
logger.info("Shutting down Patherly API server...")
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
title=settings.APP_NAME,
|
||||
description="A troubleshooting decision tree application for MSP engineers",
|
||||
description="Patherly - Take the path MOST traveled. Guided troubleshooting with automatic documentation.",
|
||||
version="1.0.0",
|
||||
docs_url="/api/docs",
|
||||
redoc_url="/api/redoc",
|
||||
@@ -58,7 +58,7 @@ app.include_router(api_router, prefix=settings.API_V1_PREFIX)
|
||||
async def root():
|
||||
"""Root endpoint."""
|
||||
return {
|
||||
"message": "Troubleshooting Decision Tree API",
|
||||
"message": "Patherly API",
|
||||
"docs": "/api/docs",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
container_name: apoklisis_postgres
|
||||
container_name: patherly_postgres
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: apoklisis
|
||||
POSTGRES_DB: patherly
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user