A peer-to-peer stack for code collaboration
Prefix environment variable with RAD_
Thomas Scholtesb2ff11e335c3
diff --git a/cloudbuild.yaml b/cloudbuild.yamlindex 7ed2665..305bf7d 100644--- a/cloudbuild.yaml+++ b/cloudbuild.yaml@@ -156,7 +156,7 @@ steps:- |set -euxo pipefailstack exec -- radicle - <<<'(load! "rad/examples/counter.rad") (counter/run-test)'- IPFS_API_URL=http://ipfs-test-network:5001 stack exec -- radicle test/machine-backends.rad radicle-server+ RAD_IPFS_API_URL=http://ipfs-test-network:5001 stack exec -- radicle test/machine-backends.rad radicle-server- id: "Save cache"waitFor:diff --git a/src/Radicle/Internal/MachineBackend/Ipfs.hs b/src/Radicle/Internal/MachineBackend/Ipfs.hsindex 7074ec0..71c9870 100644--- a/src/Radicle/Internal/MachineBackend/Ipfs.hs+++ b/src/Radicle/Internal/MachineBackend/Ipfs.hs@@ -306,7 +306,7 @@ ipfsHttpPost path payloadArgName payload = doipfsApiUrl :: Text -> IO TextipfsApiUrl path = do- baseUrl <- fromMaybe "http://localhost:9301" <$> lookupEnv "IPFS_API_URL"+ baseUrl <- fromMaybe "http://localhost:9301" <$> lookupEnv "RAD_IPFS_API_URL"pure $ toS baseUrl <> "/api/v0/" <> pathhandleRequestException :: MonadThrow m => HttpException -> m a