mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
docu regarding docker-compose exec does not work - use docker exec
This commit is contained in:
parent
d7619c1ffb
commit
d292952768
@ -89,7 +89,7 @@ backend is running:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in main folder while docker-compose is running
|
# in main folder while docker-compose is running
|
||||||
$ docker-compose exec backend yarn run db:migrate init
|
$ docker exec backend yarn run db:migrate init
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endtab %}
|
{% endtab %}
|
||||||
@ -116,18 +116,18 @@ In another terminal run:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in main folder while docker-compose is running
|
# in main folder while docker-compose is running
|
||||||
$ docker-compose exec backend yarn run db:seed
|
$ docker exec backend yarn run db:seed
|
||||||
```
|
```
|
||||||
|
|
||||||
To reset the database run:
|
To reset the database run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in main folder while docker-compose is running
|
# in main folder while docker-compose is running
|
||||||
$ docker-compose exec backend yarn run db:reset
|
$ docker exec backend yarn run db:reset
|
||||||
# you could also wipe out your neo4j database and delete all volumes with:
|
# you could also wipe out your neo4j database and delete all volumes with:
|
||||||
$ docker-compose down -v
|
$ docker-compose down -v
|
||||||
# if container is not running, run this command to set up your database indeces and contstraints
|
# if container is not running, run this command to set up your database indeces and contstraints
|
||||||
$ docker-compose exec backend yarn run db:migrate init
|
$ docker exec backend yarn run db:migrate init
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endtab %}
|
{% endtab %}
|
||||||
@ -170,7 +170,7 @@ To run the migration:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in main folder while docker-compose is running
|
# in main folder while docker-compose is running
|
||||||
$ docker-compose exec backend yarn run db:migrate up
|
$ docker exec backend yarn run db:migrate up
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endtab %}
|
{% endtab %}
|
||||||
@ -206,7 +206,7 @@ Run the unit tests:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# in main folder while docker-compose is running
|
# in main folder while docker-compose is running
|
||||||
$ docker-compose exec backend yarn run test
|
$ docker exec backend yarn run test
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endtab %}
|
{% endtab %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user