mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
specific config for docker to have baked in the image
This commit is contained in:
parent
762163e18a
commit
541da69401
2 changed files with 7 additions and 1 deletions
6
celery_worker_docker.py
Normal file
6
celery_worker_docker.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
|
from app import celery, create_app
|
||||||
|
|
||||||
|
app = create_app()
|
||||||
|
app.app_context().push()
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
celery -A celery_worker.celery worker --autoscale=5,1
|
celery -A celery_worker_docker.celery worker --autoscale=5,1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue