• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue NPM script omits parameters

raphael

New Pleskian
Hi all,

I want to host my Node.js application with Plesk.
I am using enduro.js - minimalistic, lean & mean, node.js cms for professionals as node based cms for my application (working great!) but I still have an issue:

- For the deployment, I created an npm script in my package.json:

"scripts": {
"start": "node_modules/.bin/enduro start"
}

- On startup of the application, plesk seems to execute "node_modules/.bin/enduro" (without "start") because I can see the welcoming message of enduro in the log, which is shown when you just use the executable without any parameter.
- The other possibilty would be that npm does not use my script from the package.json and instead is executing "node node_modules/.bin/enduro". (this would also lead to the welcoming message)
- When I then click on "run script" and just enter "start" (which runs my script above), it works perfectly.

The problem is, that I do not want to execute the start script manually each time I am restarting the server. Is there something I am missing for the configuration?

Best regards and thank you in advance,
Raphael
 
Last edited:
Back
Top