NodeJS application stopping on EC2 instance

0

I have a NodeJS application running on a EC2 instance free-tier. There are a bunch of functions and some functions connects to an AWS RDS database. The issue I am facing is that the NodeJS application stops to work by itself, I have to connect to the console and re-start the application manually. No deployments are being made.

The app is started using nodemon index.js Any idea on how it can be prevented?

Thanks

  • Can you share logs on what is causing the stop? Cloud watch should have that info

Rodrigo
已提問 1 年前檢視次數 342 次
1 個回答
0

Use Kubernetes and it will automatically restart a container.

profile picture
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南