Update docs/SETUP.md
This commit is contained in:
parent
b2f6f216f6
commit
6c7bf0223b
|
@ -31,24 +31,24 @@ docker compose -f dev-compose.yml down
|
||||||
# Applying Migrations
|
# Applying Migrations
|
||||||
If migrations haven't been applied yet you can apply them with the following commands:
|
If migrations haven't been applied yet you can apply them with the following commands:
|
||||||
|
|
||||||
*Note: Plase ensure the database is running*
|
*Note: Plase ensure the database and backend is running*
|
||||||
|
|
||||||
1. remove old docker image to rebuild
|
remove old docker image if you have updated the backend
|
||||||
```bash
|
```bash
|
||||||
docker image remove apfelnetzwerk-backend
|
docker image remove apfelnetzwerk-backend
|
||||||
```
|
```
|
||||||
|
|
||||||
2. check which dockers are running
|
1. check which dockers are running (both the database and backend should run otherwise start them as stated above)
|
||||||
```bash
|
```bash
|
||||||
docker ps
|
docker ps
|
||||||
```
|
```
|
||||||
|
|
||||||
3. attach a shell to the running postgres docker container
|
2. attach a shell to the running postgres docker container
|
||||||
```bash
|
```bash
|
||||||
docker exec -it <it/name> /bin/bash
|
docker exec -it <id/name> /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
4. apply migrations
|
3. apply migrations
|
||||||
```bash
|
```bash
|
||||||
#(go into the crates folder)
|
#(go into the crates folder)
|
||||||
cd crates
|
cd crates
|
||||||
|
|
Loading…
Reference in a new issue