Clean up README.md
This commit is contained in:
parent
63818bd371
commit
2b8330e32a
16
README.md
16
README.md
@ -53,6 +53,7 @@ Note: replace `www-data` with whatever user your webserver runs as.
|
|||||||
16. Set up your webserver to proxy the uwsgi.sock
|
16. Set up your webserver to proxy the uwsgi.sock
|
||||||
|
|
||||||
Example NGINX location block:
|
Example NGINX location block:
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
location /upload {
|
location /upload {
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
@ -63,22 +64,21 @@ location /upload {
|
|||||||
|
|
||||||
### Using Flask development server
|
### Using Flask development server
|
||||||
|
|
||||||
|
|
||||||
#### Setup
|
#### Setup
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ git clone https://git.bbaovanc.com/bbaovanc/imgupload.git
|
git clone https://git.bbaovanc.com/bbaovanc/imgupload.git
|
||||||
$ cd imgupload
|
cd imgupload
|
||||||
$ python3 -m venv env
|
python3 -m venv env
|
||||||
$ source env/bin/activate
|
source env/bin/activate
|
||||||
$ pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Run
|
#### Run
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ export FLASK_APP=imgupload.py
|
export FLASK_APP=imgupload.py
|
||||||
$ flask run
|
flask run
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user