Add git checkout step to uWSGI guide
This commit is contained in:
parent
9910bc279c
commit
67cb916ac9
21
README.md
21
README.md
@ -40,16 +40,17 @@ Note: replace `www-data` with whatever user your webserver runs as.
|
|||||||
3. Enter www-data user: `sudo su www-data`
|
3. Enter www-data user: `sudo su www-data`
|
||||||
4. Change directories to /srv/imgupload: `cd /srv/imgupload`
|
4. Change directories to /srv/imgupload: `cd /srv/imgupload`
|
||||||
5. Clone the repository: `git clone https://git.bbaovanc.com/bbaovanc/imgupload.git`
|
5. Clone the repository: `git clone https://git.bbaovanc.com/bbaovanc/imgupload.git`
|
||||||
6. Enter the imgupload directory: `cd imgupload`
|
6. Checkout the version you want (replace [version] with desired version: `git checkout [version]`
|
||||||
7. Create a virtualenv: `python3 -m venv env`
|
7. Enter the imgupload directory: `cd imgupload`
|
||||||
8. Enter the virtualenv: `source env/bin/activate`
|
8. Create a virtualenv: `python3 -m venv env`
|
||||||
9. Install dependencies: `python3 -m pip install -r requirements.txt`
|
9. Enter the virtualenv: `source env/bin/activate`
|
||||||
10. Leave the www-data user: `exit`
|
10. Install dependencies: `python3 -m pip install -r requirements.txt`
|
||||||
11. Copy the default uWSGI configuration: `sudo cp /srv/imgupload/uwsgi.ini.default /etc/uwsgi/apps-available/imgupload.ini`
|
11. Leave the www-data user: `exit`
|
||||||
12. Modify `/etc/uwsgi/apps-available/imgupload.ini` to your preferences
|
12. Copy the default uWSGI configuration: `sudo cp /srv/imgupload/uwsgi.ini.default /etc/uwsgi/apps-available/imgupload.ini`
|
||||||
13. Enable imgupload: `sudo ln -s /etc/uwsgi/apps-available/imgupload.ini /etc/uwsgi/apps-enabled/`
|
13. Modify `/etc/uwsgi/apps-available/imgupload.ini` to your preferences
|
||||||
14. Restart uWSGI: `sudo systemctl restart uwsgi`
|
14. Enable imgupload: `sudo ln -s /etc/uwsgi/apps-available/imgupload.ini /etc/uwsgi/apps-enabled/`
|
||||||
15. Set up your webserver to proxy the uwsgi.sock
|
15. Restart uWSGI: `sudo systemctl restart uwsgi`
|
||||||
|
16. Set up your webserver to proxy the uwsgi.sock
|
||||||
|
|
||||||
Example NGINX location block:
|
Example NGINX location block:
|
||||||
```nginx
|
```nginx
|
||||||
|
Reference in New Issue
Block a user