discourse/bin
Loïc Guitaut 6b243ffdfd
DEV: Remove Unicorn web server in favor of Pitchfork (#39032)
Pitchfork has been the default web server for some time now. This
removes Unicorn entirely to simplify the codebase and unblock future
improvements (like Rack 3).

Notable changes beyond the straightforward removal:

- `Discourse.after_unicorn_worker_fork` →
`Discourse.apply_worker_db_variables_overrides`: renamed and wired into
pitchfork.conf.rb's `after_worker_fork`. This actually *fixes*
per-worker DB variable overrides (`unicorn_worker_db_variables_*`) which
were never called under Pitchfork.
- `bin/ember-cli`: `--unicorn` flag renamed to `--server` (`-u` kept).
- `lib/demon/sidekiq.rb`: removed Unicorn-specific USR1/USR2 signal
handlers and `reopen_logs` (called `Unicorn::Util.reopen_logs`), which
were already dead code under Pitchfork.

Intentionally kept unchanged:
- `config/unicorn_launcher` (used by Docker images, separate effort)
- `docker_manager` plugin (separate repo)
- `UNICORN_*` env vars (renaming deferred)
- Rack < 3 constraint (separate PR)
2026-04-01 15:04:59 +02:00
..
docker DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
annotaterb DEV: fix linter and linting config (#36815) 2025-12-22 07:23:19 +11:00
bundle DEV: fix linter and linting config (#36815) 2025-12-22 07:23:19 +11:00
dev DEV: Add basic bin/dev script for launching in development (#23254) 2023-08-25 12:07:16 +08:00
ember-cli DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
lint PERF: let lefthook run linter commands in parallel (#38649) 2026-03-17 11:27:08 +08:00
notify_file_change FIX: notify_file_change was outputting a command to vim 2020-12-10 10:03:57 -05:00
pitchfork DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
qunit DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
rails DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
rake DEV: fix linter and linting config (#36815) 2025-12-22 07:23:19 +11:00
rspec DEV: Add client settled checks for system tests (#35230) 2025-10-10 11:03:18 +08:00
rubocop DEV: fix linter and linting config (#36815) 2025-12-22 07:23:19 +11:00
system_rspec DEV: Minimal first pass of rails system test setup (#16311) 2022-09-28 11:48:16 +10:00
turbo_rspec DEV: Enforce deprecation-free tests for preinstalled plugins/themes (#36445) 2025-12-16 17:48:29 -03:00