1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

don't upload tarball to s3 in cloud

This commit is contained in:
Martin McKeaveney 2021-10-06 15:36:40 +01:00
parent 37cfac65bf
commit a3e01cccdb

View file

@ -265,7 +265,7 @@ exports.downloadTarball = async (url, bucketName, path) => {
const tmpPath = join(budibaseTempDir(), path)
await streamPipeline(response.body, zlib.Unzip(), tar.extract(tmpPath))
if (!env.isTest()) {
if (!env.isTest() && env.SELF_HOSTED) {
await exports.uploadDirectory(bucketName, tmpPath, path)
}
// return the temporary path incase there is a use for it