pass tmp path as env var

This commit is contained in:
Henry Oswald 2018-10-04 11:14:15 +01:00
parent 7893ace13f
commit 8d8319460e

View file

@ -1,5 +1,5 @@
Path = require('path')
TMP_DIR = Path.resolve(Path.join(__dirname, "../../", "tmp"))
TMP_DIR = process.env["TMP_PATH"] or Path.resolve(Path.join(__dirname, "../../", "tmp"))
module.exports =
mongo: