diff --git a/index.js b/index.js index 562147a4cb3d0a9fbbb0023d2b85689d3f44d300..a9451721a1d20b683bb0eadce735efe4b3d3b833 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,11 @@ const express = require('express'); const path = require('path'); const webminController = require('./server/controller/webmin.js'); +// Inject 'webstart' command if no argument was given +if (process.argv.length === 2) { + process.argv.push('webstart'); +} + module.exports = { duniter: { @@ -22,11 +27,6 @@ module.exports = { * SPECIALISATION ***************************************/ - // Inject 'webstart' command if no argument was given - if (process.argv.length === 2) { - process.argv.push('webstart'); - } - const app = express(); const HOTE = 'localhost'; const PORT = 9220;