A little background: I have a Node.js worker that reads an SQS queue and updates documents in Elasticsearch. The worker is deployed through Elastic Beanstalk and not accessible from the internet.
The deployment works fine but I want to run tests before Elastic Beanstalk deploys a new version of the worker. I found out that the prestart script is being called, but even when I do an exit 1 like shown below:
"scripts": {
"start": "node updater.js",
"prestart": "exit 1"
The deployment isn't stopped. It just deploys an EC2 instance without a running app. Does someone know how to stop deployment on error?
via John Verkerk
No comments:
Post a Comment