diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-10 18:30:55 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-10 18:30:55 +0200 |
| commit | 7ad86f6dbb65941f9c7aa49a1938e1a0a5bb7d50 (patch) | |
| tree | 0fc41ed53461e62fa1f8d4dbf7ae7ad287eac544 /bucky/app | |
| parent | 76d54003f9db7eaa4a03e612e76626c73668ce9d (diff) | |
dont hardcode s3 path
Diffstat (limited to 'bucky/app')
| -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) |
