travis: force rails into dev mode
This commit is contained in:
parent
e63b856a24
commit
12b903c59d
|
@ -78,15 +78,17 @@ async function runMastodon () {
|
||||||
let cmds = [
|
let cmds = [
|
||||||
'gem install bundler foreman',
|
'gem install bundler foreman',
|
||||||
'bundle install',
|
'bundle install',
|
||||||
'yarn --pure-lockfile',
|
'yarn --pure-lockfile'
|
||||||
'bundle exec rails webpacker:install'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for (let cmd of cmds) {
|
for (let cmd of cmds) {
|
||||||
console.log(cmd)
|
console.log(cmd)
|
||||||
await exec(cmd, {cwd: mastodonDir})
|
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'})
|
const log = process.env.TRAVIS ? process.stdout : fs.createWriteStream('mastodon.log', {flags: 'a'})
|
||||||
childProc = promise.childProcess
|
childProc = promise.childProcess
|
||||||
childProc.stdout.pipe(log)
|
childProc.stdout.pipe(log)
|
||||||
|
|
Loading…
Reference in a new issue