4. Naive deployment approach
Manually change conf ig f iles
Xcopy/Publish web application
Run database scripts
Run scripts to install/update window services
Independent deploy
Repeat for each server and environment
7. Application Architecture
Multiple Database servers
back-up
Environment Run update script
specif ic
conf iguration
Rollback Install service if needed
using netstat
Back-up current version
Environment specif ic
configuration
Xcopy/FTP/publish
by Radu Pascal & Romulus Crisan
8. Is this ok ?
It’s ok, but:
It can take lots of time
Error prone
No easy way to see deployed version
Rollbacks can be painful
Lack of confidence
Multiply that by the number env.
17. Developing with
Visual Studio Online
Team
Foundation
Service
Developer
Visual Studio
by Radu Pascal & Romulus Crisan
Build
Server
Visual Studio Online
18. Team
Foundation
Service
Developer
Visual Studio
by Radu Pascal & Romulus Crisan
Build
Server
Visual Studio Online
Build
Server
On-Premises
Adding On-Premises
Build Server
19. Instal TFS Build Server
Add a VSO user with enough rights to
build
Download TFS/TFS Express
Follow the Wizard
20. Visual Studio Online
Rights for Build
Server User
by Radu Pascal & Romulus Crisan
21. by Radu Pascal & Romulus Crisan
Conf igure Team
Foundation Build
Service
22. by Radu Pascal & Romulus Crisan
Add your Visual
Studio Online
Account
23. Sign into the
repository with a
user with enough
rights..
by Radu Pascal & Romulus Crisan
24. Finish setting The Build Server
- Setup .Net build environment or..
- Install Visual Studio (Express)
- Install any SDKs
- Setup any licenses
26. Create a New Build
Definition
by Radu Pascal & Romulus Crisan
27. Create a New Build
Definition
by Radu Pascal & Romulus Crisan
28. Create a New Build
Definition
by Radu Pascal & Romulus Crisan
29. Create a New Build
Definition
by Radu Pascal & Romulus Crisan
30. Create a New Build
Definition
by Radu Pascal & Romulus Crisan
31. Build Definitions
Gated – verify that code is compilable, and
UTs are green
Continuous Integration – above plus
generate deliverables
Scheduled (Nightly) – above plus
Automation Testing, and Automated
Deploys
32. Other Build Servers?
Team City
Cruise Control
Jenkins
.. and don’t forget to create a MSBuild
script
39. Octopus Deploy
Automated deployment for .NET
All your deployments, in one place
Deploy on-premises or to the cloud,
securely
Configuration and scripting
Integrates with your build server
42. Octopus and tentacles
With Tentacle
With Tentacle
by Radu Pascal & Romulus Crisan
Azure SQL
Database
Application
Servers
Octopus Server
With Tentacle
Azure
Website