From 7ad86f6dbb65941f9c7aa49a1938e1a0a5bb7d50 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 May 2018 18:30:55 +0200 Subject: dont hardcode s3 path --- bucky/app/bucky.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bucky/app') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 81b71a4..f8ea00b 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -480,7 +480,7 @@ var bucky = module.exports = { return } var thread_id = res.thread.get('id') - var dirname = '/bucky/data/' + thread_id + '/' + var dirname = process.env.S3_PATH + '/data/' + thread_id + '/' var promises = req.files.map((file) => { return new Promise( (resolve, reject) => { upload.put({ @@ -499,7 +499,7 @@ var bucky = module.exports = { date: util.now(), size: file.size, privacy: false, - storage: 'i.asdf.us', + storage: process.env.S3_BUCKET, } db.createFile(data).then(function(file){ resolve(file) -- cgit v1.2.3-70-g09d2