Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 1fe6d83

Browse files
committed
fix(tmp): using temp folder, closes #33
1 parent 464faa7 commit 1fe6d83

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

git-pages.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ module.exports = {
4747
index: 'A/index.html'
4848
}
4949
},
50-
storagePath: '/tmp/kpages', // local temp folder, optional
5150
port: 8765, // serving port, optional
5251
useHttps: true // form full urls from user / repo using ssh or https
5352
};

src/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
'use strict'
2+
13
var exists = require('fs').existsSync;
24
var join = require('path').join;
35
var R = require('ramda');
46
var check = require('check-more-types');
7+
var os = require('os');
58

69
function firstFoundConfig(name) {
710
var full = join(process.cwd(), name);
@@ -18,9 +21,10 @@ function mergeCliWithConfig(options) {
1821
options = options || {};
1922

2023
// TODO read run config using nconf
24+
var tmpFolder = os.tmpdir()
2125
var defaultConfig = {
2226
repos: {},
23-
storagePath: '/tmp/kpages',
27+
storagePath: join(tmpFolder, 'git-pages'),
2428
port: 8765,
2529
useHttps: false,
2630
};

0 commit comments

Comments
 (0)