The twelve-factor app is designed for continuous deployment by keeping the gap between development and production small.
Looking at the three gaps described above:
Make the time gap small
A developer may write code and have it deployed hours or even just minutes later.
Make the personnel gap small
Developers who wrote code are closely involved in deploying it and watching its behavior in production.
Make the tools gap small
Keep development and production as similar as possible. Cheers!!