Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Click'n'Deploy

 Click'n'Deploy

The focus of this session will be to present options to streamline build, integrate tests as part of build process, and deploy your work on various environments. Traditionally this part of the application lifecycle was neglected, in most projects the effort to promote changes is significant. In the recent years lots of tools have appeared that simplify the build and deployment parts of the application lifecycle. In this session we will walk you through a scenario of a complex .Net Web Application with Back-end Services that is developed using Continuous Integration, Versioned Builds and Click’n’Deploy using tools like: TFSBuild, Gulp and Octopus Deploy. - See more at: http://iasi.codecamp.ro/#agenda

Romulus Crisan

October 30, 2014
Tweet

More Decks by Romulus Crisan

Other Decks in Programming

Transcript

  1. Naive deployment approach Manually change config files Xcopy/Publish web application

    Run database scripts Run scripts to install/update window services Independent deploy Repeat for each server and environment
  2. by Radu Pascal & Romulus Crisan Application Architecture Back-up current

    version Environment specific configuration Xcopy/FTP/publish
  3. by Radu Pascal & Romulus Crisan Application Architecture Multiple servers

    Environment specific configuration Install service using netstat
  4. 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.
  5. Source control TFS Git SVN Visual Studio Online (TFS in

    the cloud) Github Bitbucket Lots and lots more…
  6. by Radu Pascal & Romulus Crisan Developing with Visual Studio

    Online Team Foundation Service Developer Build Server Visual Studio Visual Studio Online
  7. by Radu Pascal & Romulus Crisan Team Foundation Service Developer

    Build Server Visual Studio Visual Studio Online Build Server On-Premises Adding On-Premises Build Server
  8. Instal TFS Build Server Add a VSO user with enough

    rights to build Download TFS/TFS Express Follow the Wizard
  9. Finish setting The Build Server - Setup .Net build environment

    or.. - Install Visual Studio (Express) - Install any SDKs - Setup any licenses
  10. 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
  11. Other Build Servers? Team City Cruise Control Jenkins .. and

    don’t forget to create a MSBuild script
  12. Reasons As simple as a few clicks.. Fast Removes lots

    of human errors Real time and history information
  13. 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
  14. by Radu Pascal & Romulus Crisan Octopus and tentacles With

    Tentacle With Tentacle Azure SQL Database Application Servers Octopus Server With Tentacle Azure Website