Setting environment variables for test and development

What are you trying to load? You can set

DISCOURSE_SETTING_NAME=value

for all SiteSettings.

Would that help?