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 mijn 7 jaar van discourse-ontwikkeling heb ik het volgens mij één keer geïnstalleerd. Voer gewoon de rake-taak uit om de admin-gebruiker in te stellen.

1 like

Als je verwijst naar bin/rails admin:create, dan ja, dat heb ik gedaan, dus ik heb mijn bericht hierboven bewerkt omdat ik me realiseerde dat ik mijn account niet hoefde te verifiƫren (en volgende gebruikersaccounts kunnen handmatig worden geactiveerd).

Maar om terug te komen op het ImageMagick-gedeelte, is er een manier om ImageMagick niet te gebruiken (dus het echt ā€˜optioneel’ te maken)?