Learnings from using Heroku to host a production system, presented at Jfokus in Stockholm.
as a production platform
View Slide
Howdy!I’m Mårten Gustafson
Why?
ServersWe saw no need
Architecture12 factor compliance
DevOpsNo ops/infra team
Our setup
Our historyGlesys => UpCloud => Heroku
Since November 2013
RedGreenRefactor
RedGreenRefactorCode push
Bronson.ioRedGreenRefactorOpen PRCode review, build& unit tests
Bronson.ioRedGreenRefactorCode review, build& unit tests
Bronson.ioRedGreenRefactorMerge to masterBuild & unit tests
Bronson.ioRedGreenRefactorBuild & unit testsStage deploy
Bronson.ioRedGreenRefactorStage deploy
Bronson.ioRedGreenRefactorProduction deploy
Bronson.ioRedGreenRefactor
Learnings
OrganizationsOrganisation == Environment
PrebootZero downtime deploy
Add-onsper-app per-env control
DelegateAccess & responsibility
PipelinesDon’t push, promote
Auto-deployAt least to staging
TransparencyAudit trail & chat log
Challenges
Service discoveryWe use DNS
Auto-scalingAPI vs add-ons
Provisioningterraform.io
SSL certificatesmanual vs add-ons
Questions?[email protected]