Prod modifications

This commit is contained in:
dev
2025-06-14 18:44:05 +02:00
parent e050484b57
commit b527779919
4 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ MAX_PENDING_TIME=600
MAX_STORE_TIME=259200
FLASK_DEBUG=0
FLASK_ENV=production
DB_URI=postgresql://aperiuser:aperipass@postgres:5432/aperisolve
DB_URI=postgresql://aperiuser:iacyANdLeUREonIuMPorpHySTaIsHEAn@postgres:5432/aperisolve
RQ_DASHBOARD_REDIS_URL=redis://redis:6379/0
POSTGRES_DB=aperisolve
POSTGRES_USER=aperiuser
POSTGRES_PASSWORD=aperipass
POSTGRES_PASSWORD=iacyANdLeUREonIuMPorpHySTaIsHEAn
+1 -2
View File
@@ -39,6 +39,5 @@ jobs:
context: ./
push: true
tags: |
ghcr.io/${{ env.lower_actor }}/aperisolve:latest
ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }}
ghcr.io/${{ env.lower_actor }}/aperisolve:prod
+5
View File
@@ -246,6 +246,11 @@ def get_image(
return send_file(output_file, as_attachment=True)
@app.route("/ads.txt")
def google_ads() -> str:
return "google.com, pub-2324718887045017, DIRECT, f08c47fec0942fa0"
if __name__ == "__main__":
debug_mode = os.environ.get("FLASK_DEBUG", "false").lower() == "true"
app.run(host="0.0.0.0", port=5000, debug=debug_mode)
+3 -3
View File
@@ -1,11 +1,11 @@
services:
web:
image: ghcr.io/zeecka/aperisolve:latest
image: ghcr.io/zeecka/aperisolve:prod
#build: .
container_name: aperisolve-web
restart: always
ports:
- "5000:5000"
- "80:5000"
volumes:
- apresults:/aperisolve/results
depends_on:
@@ -19,7 +19,7 @@ services:
- .env
worker:
image: ghcr.io/zeecka/aperisolve:latest
image: ghcr.io/zeecka/aperisolve:prod
#build: .
container_name: aperisolve-worker
restart: always