@@ -41,13 +41,14 @@ NOTE: Why not ping me a note once your site is live on the web,
41
41
*******************************************************************************
42
42
As part of my work on the third edition of the book,
43
43
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!
46
45
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.
49
49
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>>
51
52
52
53
*******************************************************************************
53
54
@@ -69,7 +70,7 @@ I promise seeing your site on a "real" website will be a thrill.
69
70
70
71
=== Manually Provisioning a Server to Host Our Site
71
72
72
- TODO: revise this section
73
+ // TODO: revise this section
73
74
74
75
((("staging sites", "manual server provisioning", id="SSserver09")))
75
76
((("server provisioning", id="seerver09")))
@@ -78,24 +79,18 @@ We can separate out "deployment" into two tasks:
78
79
- 'Provisioning' a new server to be able to host the code
79
80
- 'Deploying' a new version of the code to an existing server
80
81
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.
87
84
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.
94
90
95
91
96
92
==== Choosing Where to Host Our Site
97
93
98
-
99
94
((("hosting services")))
100
95
There are loads of different solutions out there these days,
101
96
but they broadly fall into two camps:
@@ -104,7 +99,6 @@ but they broadly fall into two camps:
104
99
- Using a ((("Platform-As-A-Service (PaaS)")))Platform-As-A-Service (PaaS)
105
100
offering like Heroku or my old employers, PythonAnywhere.
106
101
107
-
108
102
((("PythonAnywhere")))
109
103
Particularly for small sites, a PaaS offers a lot of advantages,
110
104
and I would definitely recommend looking into them.
@@ -127,8 +121,8 @@ from all the grizzled dinosaurs out there.
127
121
128
122
I'm not going to dictate how you do this--whether you choose Amazon AWS,
129
123
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:
132
126
133
127
* Your server is running Ubuntu 22.04 (aka "Jammy/LTS").
134
128
0 commit comments