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,25 +21,29 @@ Create virtual env: `python3.9 -m venv /var/www/recipes`
Install Javascript Tools Install Javascript Tools
```shell ```shell
apt install nodejs sudo apt install nodejs
npm install --global yarn sudo npm install --global yarn
``` ```
### Install postgresql requirements ### Install postgresql requirements
`sudo apt install libpq-dev postgresql` ```shell
sudo apt install libpq-dev postgresql
```
###Install project requirements ###Install project requirements
!!! warning "Update" !!! 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. 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: 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 You will also need to install front end requirements and build them. For this navigate to the `./vue` folder and run
```shell ```shell
yarn install yarn install
@@ -48,7 +52,9 @@ yarn build
## Setup postgresql ## Setup postgresql
`sudo -u postgres psql` ```shell
sudo -u postgres psql
```
In the psql console: In the psql console:
@@ -73,6 +79,7 @@ wget https://raw.githubusercontent.com/vabene1111/recipes/develop/.env.template
``` ```
Things to edit: Things to edit:
- `SECRET_KEY`: use something secure. - `SECRET_KEY`: use something secure.
- `POSTGRES_HOST`: probably 127.0.0.1. - `POSTGRES_HOST`: probably 127.0.0.1.
- `POSTGRES_PASSWORD`: the password we set earlier when setting up djangodb. - `POSTGRES_PASSWORD`: the password we set earlier when setting up djangodb.