204
+1
#bugs_in_my_day Whether people understand or not, I like to talk about the issues I face and document them.
let me start with this, I have two Node.js processes running on my cPanel: an API and a background worker that syncs channel posts with my database
The worker is different from an API since you don’t send HTTPS requests to it. My mistake was clicking Run JS Script in the UI. That’s for APIs. For background workers/jobs, just save the details, go to the terminal, enter the project directory, and run the script in the background. Also, make sure to redirect the console output to a log file like app.log so you can check the worker’s health later. So yeah, if it’s not an API, use the terminal, not the UI button
26 ago, 14:38
