You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/DigitalOcean Tutorial.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,8 @@ createdb johndoe
201
201
202
202
Also, here are some useful Postgres commands:
203
203
204
-
To ouput the current connection info, use:
204
+
To output the current connection info, use:
205
+
205
206
```
206
207
\conninfo
207
208
```
@@ -254,6 +255,7 @@ to enable password authentication.
254
255
## Nginx
255
256
256
257
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
+
257
259
### Installing nginx
258
260
259
261
```
@@ -289,11 +291,12 @@ And at last, if we want to check if nginx is running, we may use the command:
289
291
systemctl status nginx
290
292
```
291
293
292
-
Some other helful command options for system controller are:
294
+
Some other helpful command options for system controller are:
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.
370
373
371
374
In order to store logs, we need to create a log folder, (under `/var/www/html/items-rest/`):
372
375
@@ -386,21 +389,21 @@ Next, to install `virtualenv`:
386
389
pip install virtualenv
387
390
```
388
391
389
-
After it is installed, we can create a virtualenv:
392
+
After it is installed, we can create a `virtualenv`:
390
393
391
394
```
392
395
virtualenv venv --python==python3.5
393
396
```
394
397
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`.
396
399
397
-
To activate virtualenv:
400
+
To activate `virtualenv`:
398
401
399
402
```
400
403
source venv/bin/activate
401
404
```
402
405
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.
404
407
405
408
Next, use the command below to install the specified dependencies:
406
409
@@ -451,7 +454,7 @@ The `Service` section contains several properties related to our app. The `Envir
0 commit comments