Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions django/getting-started/existing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<app_name>.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 `<app_name>` to include it.

Expand Down
2 changes: 2 additions & 0 deletions laravel/the-basics/cron-and-queues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions rails/the-basics/sidekiq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source_url: https://fly.io/docs/rails/the-basics/sidekiq/
---

Rails applications commonly defer complex tasks that take a long to complete to a background worker to make web responses seem fast. This guide shows how to use [Sidekiq](https://github.com/mperham/sidekiq), a popular open-source Rails background job framework, to set up background workers, but it could be done with other great libraries like [Good Job](https://github.com/bensheldon/good_job), [Resque](https://github.com/resque/resque), [etc](https://www.ruby-toolbox.com/categories/Background_Jobs).

Check warning on line 7 in rails/the-basics/sidekiq.mdx

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 Consider using 'open source' instead of 'open-source'. Raw Output: {"message":"Consider using 'open source' instead of 'open-source'.","location":{"path":"rails/the-basics/sidekiq.mdx","range":{"start":{"line":7,"column":219},"end":{"line":7,"column":230}}},"severity":"INFO","code":{"value":"Fly.WordList"}}

## Provision a Redis server

Expand All @@ -27,6 +27,8 @@

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.

<Info>
Expand Down
Loading