mirror of
https://github.com/discourse/discourse.git
synced 2026-03-03 23:54:20 +08:00
This PR adds Pitchfork, as we want to move away from Unicorn ultimately. Unicorn still boots by default, so there should be no disruption for anyone. To use Pitchfork instead of Unicorn, the `RUN_PITCHFORK` environment variable must be set. This will make `bin/rails s` and `config/unicorn_launcher` boot Pitchfork. `unicorn_launcher` was patched because that way we can easily switch between Unicorn and Pitchfork without having to change too many things on the infra side. The upgrader from the `docker_manager` plugin doesn’t work yet with Pitchfork. This will be addressed in a future PR.
3 lines
60 B
Bash
Executable file
3 lines
60 B
Bash
Executable file
#!/bin/bash
|
|
|
|
exec "$(dirname "$0")/exec" bin/pitchfork "$@"
|