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