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
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: