Enhanced manual installation docs

This commit is contained in:
MaxJa4
2022-01-19 19:42:38 +01:00
parent 2e85b01242
commit 47dd3118b1

View File

@@ -21,23 +21,27 @@ Create virtual env: `python3.9 -m venv /var/www/recipes`
Install Javascript Tools
```shell
apt install nodejs
npm install --global yarn
sudo apt install nodejs
sudo npm install --global yarn
```
### Install postgresql requirements
`sudo apt install libpq-dev postgresql`
```shell
sudo apt install libpq-dev postgresql
```
###Install project requirements
!!! warning "Update"
Dependencies change with most updates so the following steps need to be re-run with every update or else the application might stop working.
See section **Updating** below
See section [Updating](#updating) below.
Using binaries from the virtual env:
`/var/www/recipes/bin/pip3.9 install -r requirements.txt`
```shell
/var/www/recipes/bin/pip3.9 install -r requirements.txt
```
You will also need to install front end requirements and build them. For this navigate to the `./vue` folder and run
@@ -48,7 +52,9 @@ yarn build
## Setup postgresql
`sudo -u postgres psql`
```shell
sudo -u postgres psql
```
In the psql console:
@@ -73,6 +79,7 @@ wget https://raw.githubusercontent.com/vabene1111/recipes/develop/.env.template
```
Things to edit:
- `SECRET_KEY`: use something secure.
- `POSTGRES_HOST`: probably 127.0.0.1.
- `POSTGRES_PASSWORD`: the password we set earlier when setting up djangodb.