Skip to content

Commit a1211ab

Browse files
authored
Merge pull request #961 from SISheogorath/feature/osTEMP
Use OS based tmp dir
2 parents ca9c4b3 + 59b3885 commit a1211ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/config/default.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
22

3+
const os = require('os')
4+
35
module.exports = {
46
domain: '',
57
urlPath: '',
@@ -39,7 +41,7 @@ module.exports = {
3941
dhParamPath: '',
4042
// other path
4143
viewPath: './public/views',
42-
tmpPath: './tmp',
44+
tmpPath: os.tmpdir(),
4345
defaultNotePath: './public/default.md',
4446
docsPath: './public/docs',
4547
uploadsPath: './public/uploads',

tmp/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)