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 Resposta
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
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas