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

[fix] The `start` command was no more working

parent 0265aaa5
Branches
No related tags found
No related merge requests found
......@@ -371,12 +371,14 @@ function Server (home, memoryOnly, overrideConf) {
*/
this.getDaemon = function getDaemon(overrideCommand, insteadOfCmd) {
const mainModule = process.argv[1]
const cwd = path.resolve(mainModule, '../..')
const argv = getCommand(overrideCommand, insteadOfCmd)
return daemonize.setup({
main: mainModule,
name: directory.INSTANCE_NAME,
pidfile: path.join(directory.INSTANCE_HOME, "app.pid"),
argv
argv,
cwd
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment