Skip to content

Commit 114e798

Browse files
author
Li Yin
committed
Fixing typo
1 parent 2158fe2 commit 114e798

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

guides/DigitalOcean Tutorial.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ createdb johndoe
201201

202202
Also, here are some useful Postgres commands:
203203

204-
To ouput the current connection info, use:
204+
To output the current connection info, use:
205+
205206
```
206207
\conninfo
207208
```
@@ -254,6 +255,7 @@ to enable password authentication.
254255
## Nginx
255256

256257
Nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server. In this tutorial, we use nginx to direct traffic to our server. Nginx can be really helpful in scenarios like running our app on multiple thread, and it is of great performance that we do not need to worry about it slowing our app down. More details about nginx can be found [here](https://nginx.org/en/).
258+
257259
### Installing nginx
258260

259261
```
@@ -289,11 +291,12 @@ And at last, if we want to check if nginx is running, we may use the command:
289291
systemctl status nginx
290292
```
291293

292-
Some other helful command options for system controller are:
294+
Some other helpful command options for system controller are:
293295

294296
```
295297
systemctl start <service_name>
296298
systemctl restart <service_name>
299+
systemctl reload <service_name>
297300
systemctl stop <service_name>
298301
```
299302

@@ -366,7 +369,7 @@ cd /var/www/html/items-rest/
366369
git clone https://github.com/schoolofcode-me/stores-rest-api.git .
367370
```
368371

369-
Note that there's a trailing space and period (` .`)at the end, which tells git the destination is the current folder. If you're not in this folder `/var/www/html/items-rest/`, remember to switch to it or explicitly specify it in the git command. And for the following commands in this section, we all assume that we are inside the folder `/var/www/html/items-rest/` unless specified otherwirse.
372+
Note that there's a trailing space and period (` .`)at the end, which tells git the destination is the current folder. If you're not in this folder `/var/www/html/items-rest/`, remember to switch to it or explicitly specify it in the git command. And for the following commands in this section, we all assume that we are inside the folder `/var/www/html/items-rest/` unless specified otherwise.
370373

371374
In order to store logs, we need to create a log folder, (under `/var/www/html/items-rest/`):
372375

@@ -386,21 +389,21 @@ Next, to install `virtualenv`:
386389
pip install virtualenv
387390
```
388391

389-
After it is installed, we can create a virtualenv:
392+
After it is installed, we can create a `virtualenv`:
390393

391394
```
392395
virtualenv venv --python==python3.5
393396
```
394397

395-
Note that Ubuntu usually comes with `Python3.5` and it is what we used in the sample code, if you choose to use different version of Python, feel free to change it accordingly, and it will be the Python version inside your virtualenv.
398+
Note that Ubuntu usually comes with `Python3.5` and it is what we used in the sample code, if you choose to use different version of Python, feel free to change it accordingly, and it will be the Python version inside your `virtualenv`.
396399

397-
To activate virtualenv:
400+
To activate `virtualenv`:
398401

399402
```
400403
source venv/bin/activate
401404
```
402405

403-
You should see `(venv)` appears at the start of your command line now. And we assume that we are in virtualenv for all the following commands in this section unless specified otherwise.
406+
You should see `(venv)` appears at the start of your command line now. And we assume that we are in `virtualenv` for all the following commands in this section unless specified otherwise.
404407

405408
Next, use the command below to install the specified dependencies:
406409

@@ -451,7 +454,7 @@ The `Service` section contains several properties related to our app. The `Envir
451454
<database_type>://<db_username>:<db_user_password>@localhost:<db_port>/<db_name>
452455
```
453456

454-
The `ExecStart` proterty informs uWSGI on how to run our app as well as log it.
457+
The `ExecStart` property informs uWSGI on how to run our app as well as log it.
455458

456459
At last, the `WantedBy` property in `Install` section allows the service to run as soon as the server boots up.
457460

0 commit comments

Comments
 (0)