diff --git a/django/getting-started/existing.mdx b/django/getting-started/existing.mdx index 74c5a0940c..d14ac0fd3b 100644 --- a/django/getting-started/existing.mdx +++ b/django/getting-started/existing.mdx @@ -108,6 +108,8 @@ The [Dockerfile](https://docs.docker.com/engine/reference/builder/) is essential The [`fly.toml`](/reference/configuration) file is used by Fly.io to configure applications for deployment. Configuration of builds, environment variables, internet-exposed services, disk mounts and release commands go here. +To run Celery workers next to your web process, with Redis as the broker, see [Background job queues](/blueprints/work-queues). + ## ALLOWED_HOSTS & CSRF\_TRUSTED_ORIGINS {#allowedhosts-amp-csrf_trustedorigins} The dedicated URL for your deployment will be `.fly.dev`. Update the [ALLOWED_HOSTS](https://docs.djangoproject.com/en/stable/ref/settings/#allowed-hosts) and [CSRF\_TRUSTED\_ORIGINS](https://docs.djangoproject.com/en/stable/ref/settings/#csrf-trusted-origins) configurations with your `` to include it. diff --git a/laravel/the-basics/cron-and-queues.mdx b/laravel/the-basics/cron-and-queues.mdx index 2d0e614c62..9d57104a07 100644 --- a/laravel/the-basics/cron-and-queues.mdx +++ b/laravel/the-basics/cron-and-queues.mdx @@ -8,6 +8,8 @@ You may need to run Laravel's scheduler (via cron) or queue workers. The best way is to use the [processes](/reference/configuration#the-processes-section) configuration. +For how a web process, background workers and Redis fit together on Fly.io, see [Background job queues](/blueprints/work-queues). + This allows you to segment your application into "groups". Each "group" can run an instance of your code base with a specific use case (web server, cron tasks, queue worker). > If you used `fly launch` to create your Laravel application, all of this should work without further modification to the Docker setup. diff --git a/rails/the-basics/sidekiq.mdx b/rails/the-basics/sidekiq.mdx index 7eb3406f0e..29e523179f 100644 --- a/rails/the-basics/sidekiq.mdx +++ b/rails/the-basics/sidekiq.mdx @@ -27,6 +27,8 @@ If you don't see `REDIS_URL` in the command above, Sidekiq won't be able to conn Most production Rails applications run background workers in a separate process. There's a few ways of accomplishing that on Fly that are [outlined in the multiple-processes](/app-guides/multiple-processes) docs. +For how a web process, background workers and Redis fit together on Fly.io, see [Background job queues](/blueprints/work-queues). + The quickest way to run multiple processes in one region is via the `processes` directive in the `fly.toml` file.