From 5da160ce83caa5bb2fb05f66e3eaf9fef956a89a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 10 Apr 2018 19:12:59 -0700 Subject: [PATCH] travis: debug foreman start --- bin/run-mastodon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index af48a35..8c200ca 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -86,7 +86,7 @@ async function runMastodon () { await exec(cmd, {cwd: mastodonDir}) } const promise = spawn('foreman', ['start'], {cwd: mastodonDir}) - const log = fs.createWriteStream('mastodon.log', {flags: 'a'}) + const log = process.env.TRAVIS ? process.stdout : fs.createWriteStream('mastodon.log', {flags: 'a'}) childProc = promise.childProcess childProc.stdout.pipe(log) childProc.stderr.pipe(log)