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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠