mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change README.md db commands for docker
This commit is contained in:
parent
8389e3d735
commit
f1d892facb
13
README.md
13
README.md
@ -110,18 +110,19 @@ $ docker-compose -f docker-compose.yml up
|
|||||||
This will start all required Docker containers.
|
This will start all required Docker containers.
|
||||||
Make sure your database is running on `http://localhost:7474/browser/`.
|
Make sure your database is running on `http://localhost:7474/browser/`.
|
||||||
|
|
||||||
Prepare database once before you start:
|
Prepare database once before you start by running the following command in a second terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in folder backend/
|
# in main folder while docker-compose is up
|
||||||
yarn run db:migrate init
|
$ docker-compose exec backend yarn run db:migrate init
|
||||||
```
|
```
|
||||||
|
|
||||||
Then clear and seed database:
|
Then clear and seed database by running the following command as well in the second terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in folder backend/
|
# in main folder while docker-compose is up
|
||||||
$ yarn run db:reset && db:seed
|
$ docker-compose exec backend yarn run db:reset
|
||||||
|
$ docker-compose exec backend yarn run db:seed
|
||||||
```
|
```
|
||||||
|
|
||||||
For a closer description see [backend README.md](./backend/README.md).
|
For a closer description see [backend README.md](./backend/README.md).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user