Skip to content

Commit 872dc65

Browse files
committed
Merge branch 'main' into review--chapter-09
2 parents a837f9d + 5b46a0e commit 872dc65

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

acknowledgments.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Jonathan H,
109109
James Evans,
110110
Patrick Cantwell,
111111
Devin Schumacher,
112+
Nick Nielsen,
112113
and to anyone I've missed off this list,
113114
my sincere apologies, and thank you thank you once again.
114115

chapter_09_docker.asciidoc

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

288288
=== An Overview of Our Deployment Procedure
289289

290-
Over these three chapters chapters I'm going to go through _a_ deployment procedure.
290+
Over these three chapters, I'm going to go through _a_ deployment procedure.
291291
It isn't meant to be the _perfect_ deployment procedure,
292292
so please don't take it as being best practice,
293293
or a recommendation--it's meant to be an illustration,
294294
to show the kinds of issues involved in putting code into production,
295295
and where testing fits in.
296296

297297

298-
**This chapter: containerizing our software**
298+
**This chapter: Containerizing our software**
299299

300-
* Adapt our FTs so they can run against a container
300+
* Adapt our FTs so they can run against a container.
301301

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

304-
* Learn how to build and run a container on our machine
304+
* Learn how to build and run a container on our machine.
305305

306306
* Learn how to run our FTs against our container.
307307

@@ -311,7 +311,7 @@ and where testing fits in.
311311

312312

313313

314-
**Next chapter: moving to a production-ready configuration**
314+
**Next chapter: Moving to a production-ready configuration**
315315

316316
* Gradually, incrementally change the container configuration
317317
to make it production-ready.
@@ -323,28 +323,26 @@ and where testing fits in.
323323
// gunicorn, DEBUG=False, secret key, etc
324324

325325

326-
**Third chapter: Automated deployment to real servers**
326+
**Third chapter: Automating deployment to real servers**
327327

328-
* Gradually build up an Ansible playbook to deploy our containers on a real server
328+
* Gradually build up an Ansible playbook to deploy our containers on a real server.
329329

330-
* Again, use our FTs to check for any problems
330+
* Again, use our FTs to check for any problems.
331331

332332
* Learn how to SSH in to the server to debug things,
333333
where to find logs and other useful information.
334334

335-
* We'll use Ansible to build an automated script that can deploy
336-
our container to staging
335+
* Confidently deploy to production once we have a working deployment script for staging.
337336

338-
* Once we have a working deployment script for staging,
339-
we can confidently deploy to production.
340-
// CSANAD: the last two points were in reverse order
337+
* Use Ansible to build an automated script that can deploy
338+
our container to staging.
341339

342340

343341
=== As Always, Start with a Test
344342

345343
((("environment variables")))
346344
Let's adapt our functional tests slightly
347-
so that it can be run against a standalone server,
345+
so that they can run against a standalone server,
348346
instead of the one that `LiveServerTestCase` creates for us.
349347
We'll do it by checking for an environment variable
350348
called `TEST_SERVER`:

0 commit comments

Comments
 (0)