Use configurable uploads folder location

This commit is contained in:
James Allen 2014-05-15 16:32:17 +01:00
parent 93883c7a03
commit e72dd50089
2 changed files with 3 additions and 2 deletions

View file

@ -41,7 +41,7 @@ app.configure ()->
app.use express.static(__dirname + '/../../../public', {maxAge: staticCacheAge })
app.set 'views', __dirname + '/../../views'
app.set 'view engine', 'jade'
app.use express.bodyParser(uploadDir: __dirname + "/../../../data/uploads")
app.use express.bodyParser(uploadDir: Settings.path.uploadFolder)
app.use cookieParser
app.use express.session
proxy: true

View file

@ -196,7 +196,8 @@ module.exports =
# If we ever need to write something to disk (e.g. incoming requests
# that need processing but may be too big for memory, then write
# them to disk here).
dumpFolder: Path.resolve "data/dumpFolder"
dumpFolder: Path.resolve __dirname + "/../data/dumpFolder"
uploadFolder: Path.resolve __dirname + "/../data/uploads"
# Automatic Snapshots
# -------------------