Capistrano based deployer tool. This uses health check api to remove and add to load balancer/HAproxy and supervisor to run app as service.
- Make sure to add
POST /health/upapi, to send200 OKas health check response. - Make sure to add
POST /health/downapi, to send503 Service Unavailableresponse. - Deployer's deploy job will mark down your machine wait for configured wait time for traffic to stop.
- Once traffic is stopped it stops supervisor service for app.
- After default port
8080does not have any application running, it starts supervisor (Alternatively you can dosupervisorctl restart app) - There is a provision for dry_run flag if you want to post deployment sanity before adding traffic.
- Traffic is added and traffic check is done.
- Once traffic is up, it proceeds for next machine deployment.
Note: This job uses classic capistrano deploy task for code management.
There is a provision for adding env files as build:setEnvFiles task