Opened 6 years ago

Last modified 6 years ago

#225 new change

Implement a non-hacky way to set up Discourse site settings

Reported by: trev Assignee:
Priority: P4 Milestone:
Module: Infrastructure Keywords: discourse, goodfirstbug
Cc: Blocked By:
Blocking: Platform:
Ready: no Confidential: no
Tester: Verified working: no
Review URL(s):



We set up Discourse site settings when the server is being provisioned. Currently we access the Discourse database directly in order to achieve this. This isn't merely error-prone, it also requires restarting Discourse every time because the settings are cached in the running process.

What to change

Replace the current mechanism by one that doesn't use such hacks. It seems that with the current Discourse version this would only be possible via the Discourse API. Which means that we need to write a script that will run during provisioning, wait for the Discourse server to start up (can take a while), get a master API key (via rake api_key:get) and send off a number of requests to the Discourse server to set the site settings to the required values.

Change History (1)

comment:1 Changed 6 years ago by trev

  • Keywords goodfirstbug added
Note: See TracTickets for help on using tickets.