Skip to content

Commit 8e4d0fb

Browse files
committed
doc(releases): rework releases and rollbacks sections
1 parent 199f7e5 commit 8e4d0fb

1 file changed

Lines changed: 62 additions & 37 deletions

File tree

src/applications/managing-app-lifecycle.md

Lines changed: 62 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -87,35 +87,57 @@ Notice that the process name has changed from `scenic-icehouse-v2-background-yf8
8787
`scenic-icehouse-v2-background-yd87g`. In a multi-node Kubernetes cluster, this may also have the effect of scheduling
8888
the Pod to a new node.
8989

90-
## Rollback a Release
90+
## Track Application Changes
91+
92+
Deis Workflow tracks all changes to your application. Application changes are the result of either new application code
93+
pushed to the platform (via `git push deis master`), or an update to application configuration (via `deis config:set KEY=VAL`).
94+
95+
Each time a build or config change is made to your application a new [release][] is created. These release numbers
96+
increase montonically.
9197

92-
Use `deis rollback` to revert to a previous release.
98+
You can see a record of changes to your application using `deis releases`:
9399

94-
$ deis rollback v2
95-
Rolled back to v2
100+
```
101+
$ deis releases
102+
=== peachy-waxworks Releases
103+
v4 3 minutes ago gabrtv deployed d3ccc05
104+
v3 1 hour 17 minutes ago gabrtv added DATABASE_URL
105+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
106+
v1 6 hours 2 minutes ago gabrtv deployed deis/helloworld
107+
```
108+
109+
## Rollback a Release
96110

97-
$ deis releases
98-
=== folksy-offshoot Releases
99-
v5 Just now gabrtv rolled back to v2
100-
v4 4 minutes ago gabrtv deployed d3ccc05
101-
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
102-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
103-
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
111+
Deis Workflow also supports rolling back go previous releases. If buggy code or an errant configuration change is pushed
112+
to your application, you may rollback to a previously known, good release.
104113

105114
!!! note
106-
All releases (including rollbacks) append to the release ledger.
115+
All rollbacks create a new, numbered release. But will reference the build/code and configuration from the desired rollback point.
107116

108-
## Track Application Changes
109117

110-
Each time a build or config change is made to your application, a new [release][] is created.
111-
Track changes to your application using `deis releases`.
118+
In this example, the application is currently running release v4. Using `deis rollback v2` tells Workflow to deploy the
119+
build and configuration that was used for release v2. This creates a new release named v5 whose contents are the source
120+
and configuration from release v2:
112121

113-
$ deis releases
114-
=== peachy-waxworks Releases
115-
v4 3 minutes ago gabrtv deployed d3ccc05
116-
v3 1 hour 17 minutes ago gabrtv added DATABASE_URL
117-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
118-
v1 6 hours 2 minutes ago gabrtv deployed deis/helloworld
122+
```
123+
$ deis releases
124+
=== folksy-offshoot Releases
125+
v4 4 minutes ago gabrtv deployed d3ccc05
126+
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
127+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
128+
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
129+
130+
$ deis rollback v2
131+
Rolled back to v2
132+
133+
$ deis releases
134+
=== folksy-offshoot Releases
135+
v5 Just now gabrtv rolled back to v2
136+
v4 4 minutes ago gabrtv deployed d3ccc05
137+
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
138+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
139+
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
140+
```
119141

120142
## Run One-off Administration Tasks
121143

@@ -165,30 +187,33 @@ CPU shares are on a scale of 0 to 1024, with 1024 being all CPU resources on the
165187

166188
Use `deis perms:create` to allow another Deis user to collaborate on your application.
167189

168-
$ deis perms:create otheruser
169-
Adding otheruser to peachy-waxworks collaborators... done
190+
```
191+
$ deis perms:create otheruser
192+
Adding otheruser to peachy-waxworks collaborators... done
193+
```
170194

171-
Use `deis perms` to see who an application is currently shared with, and
172-
`deis perms:remove` to remove a collaborator.
195+
Use `deis perms` to see who an application is currently shared with, and `deis perms:remove` to remove a collaborator.
173196

174197
!!! note
175-
Collaborators can do anything with an application that its owner can do,
176-
except delete the application itself.
177-
178-
When working with an application that has been shared with you, clone the original repository and add Deis' git remote entry before attempting to `git push` any changes to Deis.
198+
Collaborators can do anything with an application that its owner can do, except delete the application.
179199

180-
$ git clone https://github.com/deis/example-java-jetty.git
181-
Cloning into 'example-java-jetty'... done
182-
$ cd example-java-jetty
183-
$ git remote add -f deis ssh://git@local3.deisapp.com:2222/peachy-waxworks.git
184-
Updating deis
185-
From deis-controller.local:peachy-waxworks
186-
* [new branch] master -> deis/master
200+
When working with an application that has been shared with you, clone the original repository and add Deis' git remote
201+
entry before attempting to `git push` any changes to Deis.
187202

203+
```
204+
$ git clone https://github.com/deis/example-java-jetty.git
205+
Cloning into 'example-java-jetty'... done
206+
$ cd example-java-jetty
207+
$ git remote add -f deis ssh://git@local3.deisapp.com:2222/peachy-waxworks.git
208+
Updating deis
209+
From deis-controller.local:peachy-waxworks
210+
* [new branch] master -> deis/master
211+
```
188212

189213
## Application Troubleshooting
190214

191-
Applications deployed on Deis [treat logs as event streams][]. Deis aggregates `stdout` and `stderr` from every [Container][] making it easy to troubleshoot problems with your application.
215+
Applications deployed on Deis Workflow [treat logs as event streams][]. Deis Workflow aggregates `stdout` and `stderr`
216+
from every [Container][] making it easy to troubleshoot problems with your application.
192217

193218
Use `deis logs` to view the log output from your deployed application.
194219

0 commit comments

Comments
 (0)