Skip to content

Commit

Permalink
use /tmp for proxy log location
Browse files Browse the repository at this point in the history
  • Loading branch information
okor committed Dec 17, 2015
1 parent 1b06c89 commit 13e0881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lightbike.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var stats = scaffoldStats(config, startTime, __dirname);
// should be part of options hash
var minWaitTime = 4000; // ms
var WAITSCRIPT = 'return (function(){ if (typeof(LIGHTSTART) === "undefined") window.LIGHTSTART = (new Date).getTime(); if (((new Date).getTime() - LIGHTSTART) > ' + minWaitTime + ') return true; })()';
var logDir = path.resolve(__dirname + '/tmp');


// the magic
Expand All @@ -54,6 +55,7 @@ _.each(stats, function(stat) {
" --filename " + stats[stat.name].timings,
" --harFile " + stats[stat.name].har,
" --waitScript '" + WAITSCRIPT + "'",
" --logDir " + logDir
].join('');

if (stat.headers) cmd += " --headers " + "'" + stat.headers + "'";
Expand Down

0 comments on commit 13e0881

Please sign in to comment.