9 months ago
My deploy log shows the following errors:
npm ERR! path /app
npm ERR! command failed
npm ERR! signal SIGTERM
npm ERR! command sh -c node index.js
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-14T22_08_25_932Z-debug-0.log
npm WARN config production Use --omit=dev
instead.
Please tell me whats wrong.
4 Replies
9 months ago
I was trying to create a sever with NodeJS
7 months ago
Did you solve it? the same thing happens to me.
npm ERR! path /app
npm ERR! command failed
npm ERR! signal SIGTERM
npm ERR! command sh -c node server.js
Sep 27 02:31:52npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-09-27T07_21_04_299Z-debug-0.log
7 months ago
Hi, I finally got it working. What I had to do was create environment variables for the "PORT" port, in my case 4000 or 8080 for my frontend application. After creating the environment variables, I deployed and regenerated the public domains. When I enter the public domain, it works correctly.
Attachments
Status changed to Solved brody • 7 months ago