• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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