forked from iloveitaly/python-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcfile
More file actions
11 lines (10 loc) · 849 Bytes
/
Procfile
File metadata and controls
11 lines (10 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
# Whether or not you use a Procfile in production, it's a great a way to canonically define your process types.
# Since this is effectively a simple yaml file, you can extract process types using yq or other tooling rather than
# scattering and duplicating process definitions throughout your codebase.
# dokku and other systems like `web` instead of something more specific, like api
web: python main.py
# in a more complex application, you'll want to run a separate scheduler instead of running the scheduler inline
worker: celery -A app.celery.celery_app worker --beat --scheduler redbeat.RedBeatScheduler --events
scheduler: celery -A app.celery.celery_app beat --scheduler redbeat.RedBeatScheduler
job_monitor: celery -A app.celery flower --basic-auth=:$FLOWER_PASSWORD --port=$FLOWER_PORT --persistent=True --db="$REDIS_URL"
console: bash -l