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/up
api, to send200 OK
as health check response. - Make sure to add
POST /health/down
api, to send503 Service Unavailable
response. - 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
8080
does 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