@@ -261,21 +261,21 @@ But there are solutions to all of these. In order:
261
261
262
262
=== An Overview of Our Deployment Procedure
263
263
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.
265
265
It isn't meant to be the _perfect_ deployment procedure,
266
266
so please don't take it as being best practice,
267
267
or a recommendation--it's meant to be an illustration,
268
268
to show the kinds of issues involved in putting code into production,
269
269
and where testing fits in.
270
270
271
271
272
- **This chapter: containerizing our software**
272
+ **This chapter: Containerizing our software**
273
273
274
- * Adapt our FTs so they can run against a container
274
+ * Adapt our FTs so they can run against a container.
275
275
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.
277
277
278
- * Learn how to build and run a container on our machine
278
+ * Learn how to build and run a container on our machine.
279
279
280
280
* Learn how to run our FTs against our container.
281
281
@@ -285,7 +285,7 @@ and where testing fits in.
285
285
286
286
287
287
288
- **Next chapter: moving to a production-ready configuration**
288
+ **Next chapter: Moving to a production-ready configuration**
289
289
290
290
* Gradually, incrementally change the container configuration
291
291
to make it production-ready.
@@ -297,28 +297,27 @@ and where testing fits in.
297
297
// gunicorn, DEBUG=False, secret key, etc
298
298
299
299
300
- **Third chapter: Automated deployment to real servers**
300
+ **Third chapter: Automating deployment to real servers**
301
301
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.
303
303
304
- * Again, use our FTs to check for any problems
304
+ * Again, use our FTs to check for any problems.
305
305
306
306
* Learn how to SSH in to the server to debug things,
307
307
where to find logs and other useful information.
308
308
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.
311
310
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.
314
313
315
314
316
315
=== As Always, Start with a Test
317
316
318
317
((("environment variables")))
319
318
((("staging sites", "adapting functional tests for", id="SSadapt09")))
320
319
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,
322
321
instead of the one that `LiveServerTestCase` creates for us.
323
322
We'll do it by checking for an environment variable
324
323
called `TEST_SERVER`:
0 commit comments