Adding custom settings

Hi

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.

cheers

Discourse example.com/logs already have every back and front erros logged.

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

1 Like

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?

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

Logs are also in /var/discourse/shared/

1 Like

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

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.

2 Likes

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