diff --git a/install/web.js b/install/web.js index cbfd87c8ac..35343d91af 100644 --- a/install/web.js +++ b/install/web.js @@ -100,15 +100,15 @@ function launch(req, res) { res.json({}); server.close(); - var child = require('child_process').spawn('node', ['app.js'], { + var child = require('child_process').spawn('node', ['loader.js'], { detached: true, stdio: ['ignore', 'ignore', 'ignore'] }); - fs.writeFile(__dirname + '../pidfile', child.pid, function() { - child.unref(); - process.exit(0); - }); + + child.unref(); + process.exit(0); + } function compileLess(callback) {