2,269 questions
Tooling
0
votes
2
replies
128
views
Express.js / Node.js deployment options
I have an pretty simple API to build and am considering using Express.js which I have not used before. So far like like what I have seen in the little bit that I have built. However I am having a hard ...
0
votes
1
answer
139
views
Why are there random files being generated at the root of my nextjs project when deploying on google cloud vm's ubuntu using nginx and pm2?
As said in the question. I deployed a nextjs app by spinning up a VM instance with Ubuntu OS (24.4.0); then installing nginx, nvm and pm2; I then clone my project to the server, config nginx server to ...
0
votes
2
answers
62
views
Node.js backend not auto-starting on IIS localhost (React frontend works)
I have a React frontend and a Node.js backend running on a Windows server using IIS. The React frontend works fine when served through IIS, but the Node.js backend does not start automatically when ...
0
votes
1
answer
56
views
pm2 causing error inside sendwithus module
Our transfer service has been having issues, somehow when I run the transfer service off my the regular node command it works, but when I run it with pm2 is will cause an error INSIDE the sendwithus ...
0
votes
0
answers
89
views
AWS Code Deploy command not found for pm2 and pnpm
I'm deploying Node.js based server on EC2 via code deploy.
I'm using pnpm and pm2, when execution of shell script from appsepc.yml, it seems path not works. pnpm command not found or pm2 command not ...
0
votes
1
answer
86
views
Getting 413 for a large request node application running via PM2
A legacy application is running v12.18.0, and when presented with a large GET request it gives me
413 Request Header Fields Too Large
I have checked the same request by running it on a different ...
0
votes
0
answers
56
views
`pm2 start` doesn't reload environment variables
I have a NextJS application running with pm2 and recently I updated the app with Apple signin feature. So, I have to setup two new environment variables in my server, namely AUTH_APPLE_ID and ...
1
vote
0
answers
56
views
Href in my html file returning "Cannot Get" (PM2)
I have this coding in my index.html:
<!-- Href Hyperlinks -->
<a href="index.html">Trade Bot</a>
<a href="raffles.html">Monthly Raffles</a>...
0
votes
0
answers
178
views
pm2 makes paddleocr models keep in loop when trying to start process
I have a FastAPI project that I'm trying to run on server. that project uses PaddleOCR, when I just run the project with:
fastapi run main.py
It runs normally and shows a ppocr log:
ppocr DEBUG: ...
0
votes
0
answers
232
views
ECONNREFUSED error after migrating backend from Render to cPanel with Supabase DB
I'm running into a frustrating issue after migrating my backend from Render (free tier) to cPanel (for beta testing and reviews). The backend is built with Express, uses Drizzle ORM, and connects to a ...
0
votes
0
answers
88
views
How to correctly schedule a task using crontab, PM2 and NodeJS?
I currently have a schedule set up using crontab that runs a file every morning using PM2 with the below command:
10 07 * * * export NODE_ENV=prod&& sudo -E pm2 start /pathToFile/file.js -n ...
0
votes
0
answers
120
views
pm2 windows service cannot access network drive in nodejs
I’m facing an issue with a Node.js application that uses the fs module to read files from a network drive on Windows. The app works fine during development, but when I run it as a PM2 service, it ...
0
votes
2
answers
134
views
Why is pm2 not detecting a basic node error?
I can't get why a simple node process failing doesn't get detected by pm2.
pm2-dev app.js (or pm2 start app.js) with app.js containing :
throw new Error("test");
=> pm2 does not detect ...
1
vote
0
answers
63
views
Duplicate environment config with pm2
I've been using Node v20, passing it --env-file env/.dev in order to set environment variables.
Now, for some package scripts I need to add pm2 support. Turns out, pm2 forces me to place environment ...
0
votes
1
answer
355
views
How deploy python script with pm2 and virtual env using ecosystem.config.js
module.exports = {
apps : [{
name : "my_app",
cwd : "/abosolute/path-to/my-app/",
script : "main.py",
cron_restart : "0 * * * *&...