Skip to content

Commit 06d8d76

Browse files
authored
Merge pull request #201 from nicknielsen/patch-1
Update chapter_09_docker.asciidoc
2 parents 6b2282d + e876ea9 commit 06d8d76

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
@@ -254,21 +254,21 @@ But there are solutions to all of these. In order:
254254

255255
=== An Overview of Our Deployment Procedure
256256

257-
Over these three chapters chapters I'm going to go through _a_ deployment procedure.
257+
Over these three chapters, I'm going to go through _a_ deployment procedure.
258258
It isn't meant to be the _perfect_ deployment procedure,
259259
so please don't take it as being best practice,
260260
or a recommendation--it's meant to be an illustration,
261261
to show the kinds of issues involved in putting code into production,
262262
and where testing fits in.
263263

264264

265-
**This chapter: containerizing our software**
265+
**This chapter: Containerizing our software**
266266

267-
* Adapt our FTs so they can run against a container
267+
* Adapt our FTs so they can run against a container.
268268

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

271-
* Learn how to build and run a container on our machine
271+
* Learn how to build and run a container on our machine.
272272

273273
* Learn how to run our FTs against our container.
274274

@@ -278,7 +278,7 @@ and where testing fits in.
278278

279279

280280

281-
**Next chapter: moving to a production-ready configuration**
281+
**Next chapter: Moving to a production-ready configuration**
282282

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

292292

293-
**Third chapter: Automated deployment to real servers**
293+
**Third chapter: Automating deployment to real servers**
294294

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

297-
* Again, use our FTs to check for any problems
297+
* Again, use our FTs to check for any problems.
298298

299299
* Learn how to SSH in to the server to debug things,
300300
where to find logs and other useful information.
301301

302-
* Once we have a working deployment script for staging,
303-
we can confidently deploy to production.
302+
* Confidently deploy to production once we have a working deployment script for staging.
304303

305-
* We'll use Ansible to build an automated script that can deploy
306-
our container to staging
304+
* Use Ansible to build an automated script that can deploy
305+
our container to staging.
307306

308307

309308
=== As Always, Start with a Test
310309

311310
((("environment variables")))
312311
Let's adapt our functional tests slightly
313-
so that it can be run against a standalone server,
312+
so that they can run against a standalone server,
314313
instead of the one that `LiveServerTestCase` creates for us.
315314
We'll do it by checking for an environment variable
316315
called `TEST_SERVER`:

0 commit comments

Comments
 (0)