Skip to content

Commit 74ccc20

Browse files
committed
start on 11
1 parent 46248e1 commit 74ccc20

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

chapter_11_ansible.asciidoc

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ NOTE: Why not ping me a note once your site is live on the web,
4141
*******************************************************************************
4242
As part of my work on the third edition of the book,
4343
I'm rewriting the deployment chapters,
44-
but this chapter is far from ready I'm afraid.
45-
Sorry!
44+
but this chapter is very rough I'm afraid, sorry!
4645
47-
Following along with this chapter is going to be pretty
48-
much impossible while I'm still half-done.
46+
Following along with this chapter is going to be quite challenging,
47+
since although most of the code listings and commands are there,
48+
I haven't yet written all the explanations to go in between them.
4949
50-
It might be best to skip ahead to <<chapter_12_organising_test_files>>
50+
By all means have a go if you're feeling brave!
51+
But otherwise it might be best to skip ahead to <<chapter_12_organising_test_files>>
5152
5253
*******************************************************************************
5354

@@ -69,7 +70,7 @@ I promise seeing your site on a "real" website will be a thrill.
6970

7071
=== Manually Provisioning a Server to Host Our Site
7172

72-
TODO: revise this section
73+
// TODO: revise this section
7374

7475
((("staging sites", "manual server provisioning", id="SSserver09")))
7576
((("server provisioning", id="seerver09")))
@@ -78,24 +79,18 @@ We can separate out "deployment" into two tasks:
7879
- 'Provisioning' a new server to be able to host the code
7980
- 'Deploying' a new version of the code to an existing server
8081

81-
Some people like to use a brand new server for every deployment--it's what we
82-
do at PythonAnywhere. That's only necessary for larger, more complex sites
83-
though, or major changes to an existing site. For a simple site like ours, it
84-
makes sense to separate the two tasks. And, although we eventually want both
85-
to be completely automated, we can probably live with a manual provisioning
86-
system for now.
82+
Ultimately, infrastructure-as-code tools can let you automate both of these,
83+
but for the purposes of this book, we can live with manual provisioning.
8784

88-
As you go through this chapter, you should be aware that provisioning is
89-
something that varies a lot, and that as a result there are few universal
90-
best practices for deployment. So, rather than trying to remember the
91-
specifics of what I'm doing here, you should be trying to understand the
92-
rationale, so that you can apply the same kind of thinking in the
93-
specific future circumstances you encounter.
85+
I should probably stress once more that deployment is something that varies a lot,
86+
and that as a result there are few universal best practices for how to do it.
87+
So, rather than trying to remember the specifics of what I'm doing here,
88+
you should be trying to understand the rationale,
89+
so that you can apply the same kind of thinking in the specific future circumstances you encounter.
9490

9591

9692
==== Choosing Where to Host Our Site
9793

98-
9994
((("hosting services")))
10095
There are loads of different solutions out there these days,
10196
but they broadly fall into two camps:
@@ -104,7 +99,6 @@ but they broadly fall into two camps:
10499
- Using a ((("Platform-As-A-Service (PaaS)")))Platform-As-A-Service (PaaS)
105100
offering like Heroku or my old employers, PythonAnywhere.
106101

107-
108102
((("PythonAnywhere")))
109103
Particularly for small sites, a PaaS offers a lot of advantages,
110104
and I would definitely recommend looking into them.
@@ -127,8 +121,8 @@ from all the grizzled dinosaurs out there.
127121

128122
I'm not going to dictate how you do this--whether you choose Amazon AWS,
129123
Rackspace, Digital Ocean, your own server in your own data centre or a
130-
Raspberry Pi in a cupboard under the stairs, any solution should be fine, as
131-
long as:
124+
Raspberry Pi in a cupboard under the stairs, any solution should be fine,
125+
as long as:
132126

133127
* Your server is running Ubuntu 22.04 (aka "Jammy/LTS").
134128

0 commit comments

Comments
 (0)