Install Discourse on Ubuntu or Debian for Development

What is the current guide on development install?

It seems that the repository linked in the first post was archived:

This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Is there a replacement?

2 Likes

I’m setting up dev environment on Ubuntu (WSL2) and I installed PostgreSQL using asdf. now db:create complains that socket can’t be found at path /tmp/.s.PGSQL.5432. But for me the socket is at /var/run/postgresql/.s.PGSQL.5432. Where can I configure correct path? discourse.config doesn’t seem to have any effect.

Isn't the installation of mailhog very important? One cannot activate their account if it's not installed.  EDIT: Perhaps not.

Furthermore, bin/ember-cli -u throws an error about ImageMagick if it’s not installed/not the correct version. I’m following ChatGPT (please, don’t judge) to install a later version of it since (for some reason) the magick command doesn’t exist on my version. Crossing my fingers hoping it’ll work.

EDIT: :tada: ChatGPT actually helped! Discourse is now running on 4200.

1 Like

In my 7 years of discourse development I think I’ve installed it once. Just run the rake task to establish the admin user.

1 Like

If you’re referring to bin/rails admin:create then yes, I did that, so I edited my post above because I realised that I didn’t need to verify my account (and subsequent user accounts can be activated manually).

However, coming back to the ImageMagick part, is there a way for one not to use ImageMagick (i.e. truly making it ā€˜optional’)?