Skip to content

Commit e876ea9

Browse files
authored
Update chapter_09_docker.asciidoc
1 parent 8c29ad4 commit e876ea9

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

chapter_09_docker.asciidoc

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,21 @@ But there are solutions to all of these. In order:
261261

262262
=== An Overview of Our Deployment Procedure
263263

264-
Over these three chapters chapters I'm going to go through _a_ deployment procedure.
264+
Over these three chapters, I'm going to go through _a_ deployment procedure.
265265
It isn't meant to be the _perfect_ deployment procedure,
266266
so please don't take it as being best practice,
267267
or a recommendation--it's meant to be an illustration,
268268
to show the kinds of issues involved in putting code into production,
269269
and where testing fits in.
270270

271271

272-
**This chapter: containerizing our software**
272+
**This chapter: Containerizing our software**
273273

274-
* Adapt our FTs so they can run against a container
274+
* Adapt our FTs so they can run against a container.
275275

276-
* Build a minimal Dockerfile with everything we need to run our site,
276+
* Build a minimal Dockerfile with everything we need to run our site.
277277

278-
* Learn how to build and run a container on our machine
278+
* Learn how to build and run a container on our machine.
279279

280280
* Learn how to run our FTs against our container.
281281

@@ -285,7 +285,7 @@ and where testing fits in.
285285

286286

287287

288-
**Next chapter: moving to a production-ready configuration**
288+
**Next chapter: Moving to a production-ready configuration**
289289

290290
* Gradually, incrementally change the container configuration
291291
to make it production-ready.
@@ -297,28 +297,27 @@ and where testing fits in.
297297
// gunicorn, DEBUG=False, secret key, etc
298298

299299

300-
**Third chapter: Automated deployment to real servers**
300+
**Third chapter: Automating deployment to real servers**
301301

302-
* Gradually build up an Ansible playbook to deplor our containers on a real server
302+
* Gradually build up an Ansible playbook to deploy our containers on a real server.
303303

304-
* Again, use our FTs to check for any problems
304+
* Again, use our FTs to check for any problems.
305305

306306
* Learn how to SSH in to the server to debug things,
307307
where to find logs and other useful information.
308308

309-
* Once we have a working deployment script for staging,
310-
we can confidently deploy to production.
309+
* Confidently deploy to production once we have a working deployment script for staging.
311310

312-
* We'll use Ansible to build an automated script that can deploy
313-
our container to staging
311+
* Use Ansible to build an automated script that can deploy
312+
our container to staging.
314313

315314

316315
=== As Always, Start with a Test
317316

318317
((("environment variables")))
319318
((("staging sites", "adapting functional tests for", id="SSadapt09")))
320319
Let's adapt our functional tests slightly
321-
so that it can be run against a standalone server,
320+
so that they can run against a standalone server,
322321
instead of the one that `LiveServerTestCase` creates for us.
323322
We'll do it by checking for an environment variable
324323
called `TEST_SERVER`:

0 commit comments

Comments
 (0)