Skip to content

Conversation

Kludex
Copy link
Collaborator

@Kludex Kludex commented Apr 13, 2025

No description provided.

Comment on lines -144 to -165
### Circus

To use `circus` as a process manager, you should either:

* Hand over the socket to uvicorn using its file descriptor, which circus makes available as `$(circus.sockets.web)`.
* Or use a UNIX domain socket for each `uvicorn` process.

A simple circus configuration might look something like this:

```ini title="circus.ini"
[watcher:web]
cmd = venv/bin/uvicorn --fd $(circus.sockets.web) main:App
use_sockets = True
numprocesses = 4

[socket:web]
host = 0.0.0.0
port = 8000
```

Then run `circusd circus.ini`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly don't know what this is about.

@Kludex Kludex enabled auto-merge (squash) April 13, 2025 12:41
@Kludex Kludex disabled auto-merge April 13, 2025 12:45
@Kludex Kludex merged commit f2192cc into master Apr 13, 2025
16 checks passed
@Kludex Kludex deleted the improve-docs branch April 13, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant