Yesod.Default.Config
- data DefaultEnv
- = Development
- | Testing
- | Staging
- | Production
- data ArgConfig = ArgConfig {
- environment :: String
- port :: Int
- defaultArgConfig :: ArgConfig
- fromArgs :: IO (AppConfig DefaultEnv)
- fromArgsWith :: (Read e, Show e) => ArgConfig -> IO (AppConfig e)
- loadDevelopmentConfig :: IO (AppConfig DefaultEnv)
- module Yesod.Config
Documentation
data DefaultEnv Source
A yesod-provided , allows for Development, Testing, and
Production environments
AppEnv
Constructors
| Development | |
| Testing | |
| Staging | |
| Production |
Instances
Setup commandline arguments for environment and port
Constructors
| ArgConfig | |
Fields
| |
defaultArgConfig :: ArgConfigSource
A default if using the provided ArgConfig type.
DefaultEnv
fromArgs :: IO (AppConfig DefaultEnv)Source
Load an using the AppConfig environments from
commandline arguments.
DefaultEnv
loadDevelopmentConfig :: IO (AppConfig DefaultEnv)Source
Load your development config (when using )
DefaultEnv
module Yesod.Config