Background Image
Table of Contents Table of Contents
Previous Page  167 / 478 Next Page
Information
Show Menu
Previous Page 167 / 478 Next Page
Page Background

If you don’t see it, it may be because your firewall does not open port 80 to the world.

On AWS for example, you may need to configure the “security group” for your server

to open port 80.

While we’ve got root access, let’s make sure the server has the key pieces of software we

need at the system level: Python, Git, pip, and virtualenv.

elspeth@server

:$

sudo apt-get install git python3 python3-pip

elspeth@server

:$

sudo pip3 install virtualenv

Configuring Domains for Staging and Live

We don’t want to be messing about with IP addresses all the time, so we should point

our staging and live domains to the server. At my registrar, the control screens looked

a bit like

Figure 8-2 .

Figure 8-2. Domain setup

In the DNS system, pointing a domain at a specific IP address is called an “A-Record”.

All registrars are slightly different, but a bit of clicking around should get you to the

right screen in yours.

Using the FT to Confirm the Domain Works and Nginx Is Running

To confirm this works, we can rerun our functional tests and see that their failure mes‐

sages have changed slightly—one of them in particular should now mention Nginx:

Manually Provisioning a Server to Host Our Site

|

139