travis: force rails into dev mode

This commit is contained in:
Nolan Lawson 2018-04-10 19:32:47 -07:00
parent e63b856a24
commit 12b903c59d
1 changed files with 5 additions and 3 deletions

View File

@ -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)