feat: Added Makefile for fast stack management and optimized API volume mounts.
This commit is contained in:
34
Makefile
Normal file
34
Makefile
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Aether Platform - Operations Makefile
|
||||||
|
# Use these shortcuts for faster development and deployment.
|
||||||
|
|
||||||
|
.PHONY: up down restart-api build-api build-ui logs ps
|
||||||
|
|
||||||
|
# Start the entire stack
|
||||||
|
up:
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
|
# Stop the entire stack
|
||||||
|
down:
|
||||||
|
docker compose down
|
||||||
|
|
||||||
|
# FAST UPDATE: Pick up Python code changes without rebuilding
|
||||||
|
# Since source is mounted as a volume, we just need to restart the container.
|
||||||
|
# This takes ~2 seconds instead of ~60 seconds.
|
||||||
|
restart-api:
|
||||||
|
docker compose restart ae_api
|
||||||
|
|
||||||
|
# REBUILD API: Use this only when requirements.txt or Dockerfile changes.
|
||||||
|
build-api:
|
||||||
|
docker compose up -d --build ae_api
|
||||||
|
|
||||||
|
# REBUILD UI: Standard autonomous build for SvelteKit
|
||||||
|
build-ui:
|
||||||
|
docker compose build ae_app && docker compose up -d ae_app
|
||||||
|
|
||||||
|
# View combined logs
|
||||||
|
logs:
|
||||||
|
docker compose logs -f --tail=100
|
||||||
|
|
||||||
|
# Check service status
|
||||||
|
ps:
|
||||||
|
docker compose ps
|
||||||
@@ -120,7 +120,6 @@ services:
|
|||||||
linode.oneskyit.com: "104.237.143.4"
|
linode.oneskyit.com: "104.237.143.4"
|
||||||
volumes:
|
volumes:
|
||||||
- ./conf/aether_fastapi_gunicorn_conf.py:/conf/gunicorn_fastapi_conf.py
|
- ./conf/aether_fastapi_gunicorn_conf.py:/conf/gunicorn_fastapi_conf.py
|
||||||
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
|
||||||
- ./logs/ae_api:/logs
|
- ./logs/ae_api:/logs
|
||||||
- ${AE_API_SRC}:/srv/aether_api
|
- ${AE_API_SRC}:/srv/aether_api
|
||||||
- ${HOSTED_FILES_SRC}:/srv/hosted_files
|
- ${HOSTED_FILES_SRC}:/srv/hosted_files
|
||||||
|
|||||||
Reference in New Issue
Block a user