@@ -287,21 +287,21 @@ But there are solutions to all of these. In order:
287
287
288
288
=== An Overview of Our Deployment Procedure
289
289
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.
291
291
It isn't meant to be the _perfect_ deployment procedure,
292
292
so please don't take it as being best practice,
293
293
or a recommendation--it's meant to be an illustration,
294
294
to show the kinds of issues involved in putting code into production,
295
295
and where testing fits in.
296
296
297
297
298
- **This chapter: containerizing our software**
298
+ **This chapter: Containerizing our software**
299
299
300
- * Adapt our FTs so they can run against a container
300
+ * Adapt our FTs so they can run against a container.
301
301
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.
303
303
304
- * Learn how to build and run a container on our machine
304
+ * Learn how to build and run a container on our machine.
305
305
306
306
* Learn how to run our FTs against our container.
307
307
@@ -311,7 +311,7 @@ and where testing fits in.
311
311
312
312
313
313
314
- **Next chapter: moving to a production-ready configuration**
314
+ **Next chapter: Moving to a production-ready configuration**
315
315
316
316
* Gradually, incrementally change the container configuration
317
317
to make it production-ready.
@@ -323,28 +323,26 @@ and where testing fits in.
323
323
// gunicorn, DEBUG=False, secret key, etc
324
324
325
325
326
- **Third chapter: Automated deployment to real servers**
326
+ **Third chapter: Automating deployment to real servers**
327
327
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.
329
329
330
- * Again, use our FTs to check for any problems
330
+ * Again, use our FTs to check for any problems.
331
331
332
332
* Learn how to SSH in to the server to debug things,
333
333
where to find logs and other useful information.
334
334
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.
337
336
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.
341
339
342
340
343
341
=== As Always, Start with a Test
344
342
345
343
((("environment variables")))
346
344
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,
348
346
instead of the one that `LiveServerTestCase` creates for us.
349
347
We'll do it by checking for an environment variable
350
348
called `TEST_SERVER`:
0 commit comments