future-yak-43516
12/29/2019, 5:05 PMwhite-balloon-205
12/29/2019, 8:58 PMfuture-yak-43516
12/29/2019, 9:10 PMonst webContentsRootPath = path.join(process.cwd(), config.pathToWebsiteContents);
console.log("Syncing contents from local disk at", webContentsRootPath);
crawlDirectory(
webContentsRootPath,
(filePath: string) => {
const relativeFilePath = filePath.replace(webContentsRootPath + "/", "");
const contentFile = new aws.s3.BucketObject(
relativeFilePath,
{
key: relativeFilePath,
acl: "public-read",
bucket: contentBucket,
contentType: mime.getType(filePath) || undefined,
source: new pulumi.asset.FileAsset(filePath),
},
{
parent: contentBucket,
});
});orange-australia-91292
12/30/2019, 8:28 AMfuture-yak-43516
12/30/2019, 8:25 PMorange-australia-91292
12/31/2019, 8:15 AMfuture-yak-43516
12/31/2019, 10:56 AM