Explain how to use alternate ports in INSTALL.md
`npm start` doesn't work with either approach (don't ask me why), so I changed the default steps to use `node server` to reduce confusion.
This commit is contained in:
parent
f19ab602f6
commit
e8bcec74dc
12
INSTALL.md
12
INSTALL.md
|
@ -32,13 +32,21 @@ badge build passed :green .png > mybadge.png
|
|||
# Stored a PNG version of your badge on disk.
|
||||
```
|
||||
|
||||
# Set the Server
|
||||
# Start the Server
|
||||
|
||||
```bash
|
||||
git clone git@github.com:badges/shields
|
||||
cd shields
|
||||
npm install
|
||||
sudo npm start
|
||||
sudo node server
|
||||
```
|
||||
|
||||
The server uses port 80 by default, which requires `sudo` permissions.
|
||||
There are two ways to provide an alternate port:
|
||||
|
||||
```bash
|
||||
PORT=8080 node server
|
||||
node server 8080
|
||||
```
|
||||
|
||||
The root gets redirected to <http://shields.io>.
|
||||
|
|
Loading…
Reference in New Issue
Block a user