Skip to content
Snippets Groups Projects
Commit bc85d518 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Wrong process.argv injection

parent 15b445a1
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment