From 12b903c59d5f5ee2fda32da8a6361bbd07b39fa9 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 10 Apr 2018 19:32:47 -0700 Subject: [PATCH] travis: force rails into dev mode --- bin/run-mastodon.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index 9f707bd..9629ae4 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -78,15 +78,17 @@ async function runMastodon () { let cmds = [ 'gem install bundler foreman', 'bundle install', - 'yarn --pure-lockfile', - 'bundle exec rails webpacker:install' + 'yarn --pure-lockfile' ] for (let cmd of cmds) { console.log(cmd) await exec(cmd, {cwd: mastodonDir}) } - const promise = spawn('foreman', ['start'], {cwd: mastodonDir}) + const promise = spawn('foreman', ['start'], { + cwd: mastodonDir, + env: Object.assign({}, process.env, {RAILS_ENV: 'development', NODE_ENV: 'development'}) + }) const log = process.env.TRAVIS ? process.stdout : fs.createWriteStream('mastodon.log', {flags: 'a'}) childProc = promise.childProcess childProc.stdout.pipe(log)