There are some good instructions
here(note that
ssh-keygen
is
available as part of Git-
Bash on Windows).
Look out for that
elspeth@serverin the command-line listings in
this chapter. It indicates commands that must be run on the server,
as opposed to commands you run on your own PC.
Installing Nginx
We’ll need a web server, and all the cool kids are using Nginx these days, so we will too.
Having fought with Apache for many years, I can tell you it’s a blessed relief in terms of
the readability of its config files, if nothing else!
Installing Nginx on my server was a matter of doing an
apt-get
, and I could then see
the default Nginx “Hello World” screen:
elspeth@server:$
sudo apt-get install nginx
elspeth@server:$
sudo service nginx start
(You may need to do an
apt-get update
and/or an
apt-get upgrade
first.)
You should be able to go to the IP address of your server, and see the “Welcome to nginx”
page at this point, as in
Figure 8-1.
Figure 8-1. Nginx—it works!
138
|
Chapter 8: Testing Deployment Using a Staging Site