• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 Problem with start node.js app from dashboard buttons

miguelreb

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.60 #1
Hi all,
I have a Node.js app in my plesk server and this app doesnt start from dashboard buttons but yes from command line.
If I start the app from command line with npm run start the app starts correctly and all works fine, but if i disable node from dashboard buttons the app still running and doesnt stop. If i restart the server and i enabled the nodejs for this app the app doesnt start, only start if i send from the command line: npm run start.

Captura de pantalla 2024-05-09 112239.png

Where is the problem??

Tha package.json is in root:
{
"name": "jumperbot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "ts-node-dev --respawn src/index.ts",
"tsc": "tsc",
"start": "node index.js",
"serve": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.6.7",
"crypto-convert": "^2.1.7",
"dayjs": "^1.11.11",
"dotenv": "^16.4.5",
"express": "4.18.3",
"fs": "^0.0.1-security",
"mysql2": "^3.9.2",
"node-cron": "^3.0.3",
"node-telegram-bot-api": "^0.65.1",
"typescript": "^5.4.2"
},
"devDependencies": {
"@types/express": "^4.17.21",
"ts-node-dev": "^2.0.0"
}
}

And the root folder of the domain is this:
Captura de pantalla 2024-05-09 112623.png

Thanks!
 
Back
Top