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年前359ビュー
1回答
0

Use Kubernetes and it will automatically restart a container.

profile picture
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ