1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-28 23:24:53 +09:00

Loading settings was using deprecated functions, switch to new ones

This commit is contained in:
fr33domlover 2019-05-24 15:45:36 +00:00
parent 23e760e373
commit bd99729656

View file

@ -232,7 +232,7 @@ getApplicationDev = do
return (wsettings, app)
getAppSettings :: IO AppSettings
getAppSettings = loadAppSettings [configSettingsYml] [] useEnv
getAppSettings = loadYamlSettings [configSettingsYml] [] useEnv
-- | main function for use by yesod devel
develMain :: IO ()
@ -271,7 +271,7 @@ mailer foundation =
appMain :: IO ()
appMain = do
-- Get the settings from all relevant sources
settings <- loadAppSettingsArgs
settings <- loadYamlSettingsArgs
-- Fall back to compile-time values, set to [] to require values at
-- runtime
[configSettingsYmlValue]