mirror of
https://github.com/fsecada01/Pygentic-AI.git
synced 2026-08-18 15:45:49 +00:00
fix: production deployment readiness improvements
- Fix deprecated GitHub Actions ::set-output syntax - Add missing environment variables to .env.example - ANTHROPIC_API_KEY for Claude integration - FLOWER credentials for Celery monitoring - Server configuration (PORT, WORKERS, TIMEOUT) - Docker resource limits and configuration - Update Dockerfile to use organization repository Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
+21
-2
@@ -3,6 +3,9 @@ OPENAI_API_KEY=sk-proj-your-openai-api-key-here
|
||||
OPENAI_MODEL=gpt-4o-mini
|
||||
# OPENAI_MODEL=gpt-4o
|
||||
|
||||
# Anthropic Configuration
|
||||
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
|
||||
|
||||
# Security
|
||||
HTTPS_ONLY=False
|
||||
SECRET_KEY=your-secret-key-here
|
||||
@@ -36,5 +39,21 @@ REDDIT_CLIENT_ID=your-reddit-client-id
|
||||
REDDIT_CLIENT_SECRET=your-reddit-client-secret
|
||||
REDDIT_SUBREDDIT=python,kubernetes,devops,rust,selfhosted,algorithms,typescript,programming,webdev,strategy,DigitalMarketing,Entrepreneur
|
||||
|
||||
# Celery Configuration (optional)
|
||||
# CELERY_PORT=5052
|
||||
# Celery Configuration
|
||||
CELERY_PORT=5052
|
||||
FLOWER_USERNAME=admin
|
||||
FLOWER_PASSWORD=your-flower-password-here
|
||||
|
||||
# Server Configuration
|
||||
PORT=5051
|
||||
INTERNAL_PORT=5051
|
||||
WORKERS=4
|
||||
TIMEOUT=120
|
||||
|
||||
# Docker Configuration (for compose.yaml)
|
||||
IMAGE_TAG=main-latest
|
||||
MEMORY_LIMIT=1024mb
|
||||
MEMORY_RESERVATION=512mb
|
||||
CELERY_MEMORY_LIMIT=512mb
|
||||
CELERY_MEMORY_RESERVATION=256mb
|
||||
DOCKER_HOST_IP=192.168.99.85
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
steps:
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ RUN echo ${GIT_BRANCH}
|
||||
|
||||
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
|
||||
ENV WORKDIR="/opt/pygentic_ai"
|
||||
RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:fsecada01/Pygentic-AI.git ${WORKDIR}
|
||||
RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:FJS-Services-Inc/Pygentic-AI.git ${WORKDIR}
|
||||
#COPY . ${WORKDIR}
|
||||
WORKDIR ${WORKDIR}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user