mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 23:44:51 +09:00
Loading settings was using deprecated functions, switch to new ones
This commit is contained in:
parent
23e760e373
commit
bd99729656
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue