diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index f5316c6e..7945a47c 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -109,7 +109,9 @@ async function runMastodon () { await writeFile(installedFile, '', 'utf8') } const promise = spawn('foreman', ['start'], { cwd, env }) - const log = fs.createWriteStream('mastodon.log', { flags: 'a' }) + // don't bother writing to mastodon.log in Travis; we can't read the file anyway + const logFile = process.env.TRAVIS === 'true' ? '/dev/null' : 'mastodon.log' + const log = fs.createWriteStream(logFile, { flags: 'a' }) childProc = promise.childProcess childProc.stdout.pipe(log) childProc.stderr.pipe(log)