Difference between build and deploy?

Viewed 84535

What is the difference between a build and deploy and re-deploy? What should be done when you just have some HTML changes and no Java code changes? Should I do a build and deploy or just a re-deploy?

5 Answers

The gist:

  SOURCE DEPLOYMENT MODEL
┌──────────────────────────────────────────────────────────────────────┐
│                                                                      │
│                       BINARY DEPLOYMENT MODEL                        │
│                     ┌─────────────────────────────────────────────┐  │
│                     │                                             │  │
│                     │                                             │  │
│  ┌────────┐         │  ┌─────────────┐           ┌─────────────┐  │  │
│  │ source │  BUILD  │  │ application │  DELIVER  │  installed  │  │  │
│  │  code  ├─────────┼─►│   binary    ├──────────►│ application │  │  │
│  └────────┘         │  └─────────────┘           └─────────────┘  │  │
│                     │                                             │  │
│                     │                                             │  │
│                     └─────────────────────────────────────────────┘  │
│                                                                      │
└──────────────────────────────────────────────────────────────────────┘

To put it in context:

  BINARY DEPLOYMENT MODEL
┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│                BUILD MACHINE                                                 │
│                 ( OR FARM )                             TARGET MACHINE       │
│    ______________________________________            _____________________   │
│   /                                     /│          /                    /│  │
│  ┌─────────────────────────────────────┐ │         ┌────────────────────┐ │  │
│  │                                     │ │         │                    │ │  │
│  │ ┌────────┐          ┌─────────────┐ │ │         │   ┌─────────────┐  │ │  │
│  │ │ source │  BUILD   │ application │ │ │ DELIVER │   │  installed  │  │ │  │
│  │ │  code  ├─────────►│   binary    ├─┼─┼─────────┼──►│ application │  │ │  │
│  │ └────────┘          └─────────────┘ │ │         │   └─────────────┘  │ │  │
│  │                                     │/          │                    │/   │
│  └─────────────────────────────────────┘           └────────────────────┘    │
│                                                                              │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
  SOURCE DEPLOYMENT MODEL
┌───────────────────────────────────────────────────────────────────────────────┐
│                                                                               │
│     BUILD MACHINE                                                             │
│      ( OR FARM )                                  TARGET MACHINE              │
│   _______________              _____________________________________________  │
│  /              /│            /                                            /│ │
│ ┌──────────────┐ │           ┌────────────────────────────────────────────┐ │ │
│ │              │ │           │                                            │ │ │
│ │  ┌────────┐  │ │           │   ┌─────────────┐         ┌─────────────┐  │ │ │
│ │  │ source │  │ │  DELIVER  │   │ application │  BUILD  │  installed  │  │ │ │
│ │  │  code  ├──┼─┼───────────┼──►│   binary    ├────────►│ application │  │ │ │
│ │  └────────┘  │ │           │   └─────────────┘         └─────────────┘  │ │ │
│ │              │/            │                                            │/  │
│ └──────────────┘             └────────────────────────────────────────────┘   │
│                                                                               │
└───────────────────────────────────────────────────────────────────────────────┘
Related