To view all current settings in a running Discourse instance, there isn’t a straightforward command. However, you can access environment variables set in the app.yml file using docker exec app env | grep DISCOURSEaas.
Alternatively, you can use SiteSetting.all_settings in Rails Lilly. To retrieve settings set in the database, you can run docker exec -it app bash -c 'echo "SiteSetting.pluck(:name, :value)" |rails c'pfaffman. This command returns only the settings that have been changed.
I can use the following to print settings that were set via the env section of my app.yml: docker exec app env | grep DISCOURSE
How can I print all the settings that are currently being used in my running instance? It doesn’t look like there’s a command for this in the launcher script.
What do you mean? Do you really mean all of the settings? There are hundreds of them as you can see at /admin/settings. Do you mean the settings overridden with ENV variables? What you have should do that, I think.
But you can do something like this to get the settings set in the database: