From 0ba9f33f090125a61ee60467223eb3436e6775db Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 26 Dec 2017 21:50:45 -0500 Subject: [PATCH] more debugging for migration --- server/migrations/moveBucket.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/server/migrations/moveBucket.js b/server/migrations/moveBucket.js index 80ac3f72..cfb43250 100644 --- a/server/migrations/moveBucket.js +++ b/server/migrations/moveBucket.js @@ -1,4 +1,5 @@ /* eslint-disable */ +console.log('in move bucket'); import s3 from 's3'; import path from 'path'; import mongoose from 'mongoose'; @@ -11,18 +12,18 @@ mongoose.connection.on('error', () => { process.exit(1); }); -let client = s3.createClient({ - maxAsyncS3: 20, - s3RetryCount: 3, - s3RetryDelay: 1000, - multipartUploadThreshold: 20971520, // this is the default (20 MB) - multipartUploadSize: 15728640, // this is the default (15 MB) - s3Options: { - accessKeyId: `${process.env.AWS_ACCESS_KEY}`, - secretAccessKey: `${process.env.AWS_SECRET_KEY}`, - region: `${process.env.AWS_REGION}` - }, -}); +// let client = s3.createClient({ +// maxAsyncS3: 20, +// s3RetryCount: 3, +// s3RetryDelay: 1000, +// multipartUploadThreshold: 20971520, // this is the default (20 MB) +// multipartUploadSize: 15728640, // this is the default (15 MB) +// s3Options: { +// accessKeyId: `${process.env.AWS_ACCESS_KEY}`, +// secretAccessKey: `${process.env.AWS_SECRET_KEY}`, +// region: `${process.env.AWS_REGION}` +// }, +// }); Project.find({}, (err, projects) => { projects.forEach((project, projectIndex) => {