diff options
Diffstat (limited to 'bucky/app/bucky.js')
| -rw-r--r-- | bucky/app/bucky.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
