How to run a command after deployment when using aws code pipeline BUT NOT aws code deploy

0

I have a node application that I need to depoy to Elastic Beanstalk. I am using Code Pipeline to run the build and to deploy to Beanstalk, but then I need to start (npm start) the node server.

How can I run the start command on Beanstalk after the code is deployed?

Please note I am not using Code Deploy, the pipeline is deploying directly to Banstalk. Or do I need to use it (Code Deploy)?

1 個回答
0

Hello,

I'm not super familiar with Elastic Beanstalk. But if you are using containers, you should put the npm start command in the Entrypoint script when you build your image. If your run on EC2 it seems like .ebextensions is your answer.

Hope this points you in the right direction!

profile picture
已回答 1 年前

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

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

回答問題指南