Adding custom settings

(James Robinson) #1


Is it possible to add custom settings to Discourse and if so where should i do it?

For example i want to add getsentry and need to store its DSN somewhere.


(Rafael dos Santos Silva) #2

Discourse already have every back and front erros logged.

But if you really want this you can add site settings with a plugin.

(James Robinson) #3

thanks, if the logs are in the app and the app crashes how is that useful as i wouldn’t be able to see them?

(Rafael dos Santos Silva) #4

So you want to use getsentry more like a pingdom service, I see.

(Sander Datema) #5

Logs are also in /var/discourse/shared/

(James Robinson) #6

cheers, so you’re saying the only way to add something as simple as one setting is to create a plugin?

(Rafael dos Santos Silva) #7

Discourse isn’t a library, framework or engine to build websites, is a forum software. So if you want to change the normal behavior it’s usually trough a plugin. A lot of things have site settings, you can customize a lot without touching code, but not all.

But I think that expecting a plugin to add a gem and custom code is reasonable.

(James Robinson) #8

brilliant, thanks. I’ve added a sentry initializer file to the initializers folder, will this be picked up when the app starts?