Opened on 03/28/2014 at 09:53:08 AM
Last modified on 04/24/2014 at 12:25:26 PM
#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): |
Description
Background
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.
Attachments (0)
Change History (1)
comment:1 Changed on 04/24/2014 at 12:25:26 PM by trev
- Keywords goodfirstbug added