Fix installation instructions

This commit is contained in:
BBaoVanC 2020-11-20 11:43:35 -06:00
parent b20b78fd17
commit fb416d1c0d
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -35,12 +35,12 @@ First, fork [this repository](https://git.bbaovanc.com/bbaovanc/imgupload). If y
Note: replace `www-data` with whatever user your webserver runs as. Note: replace `www-data` with whatever user your webserver runs as.
1. Make /srv/imgupload: `sudo mkdir /srv/imgupload` 1. Go to /srv: `cd /srv`
2. Change ownership of /srv/imgupload: `sudo chown www-data:www-data /srv/imgupload` 2. Clone the repository: `git clone https://git.bbaovanc.com/bbaovanc/imgupload.git`
3. Enter www-data user: `sudo su www-data` 3. Change ownership of /srv/imgupload: `sudo chown www-data:www-data /srv/imgupload`
4. Change directories to /srv/imgupload: `cd /srv/imgupload` 4. Enter www-data user: `sudo su www-data`
5. Clone the repository: `git clone https://git.bbaovanc.com/bbaovanc/imgupload.git` 5. Change directories to /srv/imgupload: `cd /srv/imgupload`
6. Checkout the version you want (replace [version] with desired version: `git checkout [version]` 6. Checkout the version you want (replace [version] with desired version tag: `git checkout [version]`
7. Enter the imgupload directory: `cd imgupload` 7. Enter the imgupload directory: `cd imgupload`
8. Create a virtualenv: `python3 -m venv env` 8. Create a virtualenv: `python3 -m venv env`
9. Enter the virtualenv: `source env/bin/activate` 9. Enter the virtualenv: `source env/bin/activate`