0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/bin/docker
David Taylor 9527868295
DEV: Replace JS build system with Rolldown (#35963)
This replaces the old ember-cli build with a modern Rolldown build. In
local testing, this provides an 80% improvement in build times, while
remaining 100% backwards compatible for themes and plugins.

As part of this move, we have decided to stop using a proxy in front of
Discourse for development. Development should now be done directly
against the Rails server.

`bin/ember-cli -u` has been replaced with `bin/dev`. This will launch
Rails on `:3000`, and will run the rolldown build in the background. Log
output from both processes will be shown with an appropriate prefix. You
should visit `:3000` in your browser. `:4200` will no longer serve
anything.

To help with migration, `bin/ember-cli` is now a backwards-compatible
shim. It will print help information, and will launch a lightweight
server on `:4200` with instructions to move to `:3000`.

If you prefer to launch Rails and the JS build as separate commands, you
can still do that. Rails boot commands are unchanged, and the rolldown
development builder can be run using `bin/dev --only ember`.

https://meta.discourse.org/t/403908

---------

Co-authored-by: Jarek Radosz <jarek@cvx.dev>
Co-authored-by: Chris Manson <chris@manson.ie>
2026-05-29 11:11:55 +01:00
..
boot_dev DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
bundle DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
cleanup DEV: Add docker cleanup script to d/ folder 2020-03-01 12:09:07 -08:00
dev DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
discourse DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
exec DEV: Add env var to bin/docker/exec (#25187) 2024-01-09 12:31:08 -06:00
mailhog DEV: use mailhog in our docker dev environment (#14549) 2021-10-08 11:10:46 +05:30
migrate DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
pitchfork DEV: Add Pitchfork alongside Unicorn (#35370) 2025-10-24 11:08:23 +02:00
pnpm DEV: Replace JS build system with Rolldown (#35963) 2026-05-29 11:11:55 +01:00
psql DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
rails DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
rake DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
README.md Remove Docker dev-install instructions 2018-11-16 15:17:21 +05:30
reset_db Fix docker image name (#8058) 2019-09-04 16:19:48 +10:00
rspec DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
shell DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
shell_root DEV: Update docker development binstubs 2021-05-21 16:51:10 +01:00
shutdown_dev Improve docker performance with delegated mount flag (#5760) 2018-04-16 10:56:35 +02:00

Developing using Docker

Since Discourse runs in Docker, why not develop there? If you have Docker installed, you should be able to run Discourse directly from your source directory using a Discourse development container.

You can find installation instructions and related discussion in this meta topic: https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009

Where is the container image/Dockerfile defined?

The Dockerfile comes from discourse/discourse_docker on GitHub, in particular image/discourse_dev.