Integrated Haskell Platform
Learn how to configure IHP for use with Filebase.
What is Integrated Haskell Platform?
1. Open your IHP Config/Config.hs file.
Config/Config.hs file.2. Next, in the same file, add the following code snippet to call the function initFilebaseStorage:
initFilebaseStorage:module Config where
import IHP.Prelude
import IHP.Environment
import IHP.FrameworkConfig
import IHP.FileStorage.Config
config :: ConfigBuilder
config = do
option Development
option (AppHostname "localhost")
initFilebaseStorage "FILEBASE_BUCKET_NAME"3. To connect to Filebase, you will need to set environment variables that contain your Filebase Access and Secret keys.
4. To upload your data from IHP to Filebase using this configuration, use the following syntax:
Last updated