Permalink
Browse files

allow start server from `ferment` executable

  • Loading branch information...
mmckegg committed Oct 16, 2016
1 parent 01a7380 commit 0e4129e1329c5fe1a6895b0ac402a09e32ec3b37
Showing with 8 additions and 1 deletion.
  1. +8 −1 scripts/start.js
View
@@ -4,7 +4,14 @@ var spawn = require('child_process').spawn
var electron = require('electron')
var join = require('path').join
if (process.argv.includes('--rebuild')) {
if (process.argv[2] === 'server') {
spawn(electron, ['server/index.js'].concat(process.argv.slice(3)), {
stdio: 'inherit',
cwd: join(__dirname, '..')
}).on('exit', function (i, m) {
process.exit()
})
} else if (process.argv.includes('--rebuild')) {
spawn('npm', ['run', 'rebuild'], {
stdio: 'inherit',
cwd: join(__dirname, '..')

0 comments on commit 0e4129e

Please sign in to comment.