Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 47d90f3

Browse files
committed
📝 Fix location of scripts
1 parent 85b6e92 commit 47d90f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

{{cookiecutter.project_slug}}/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ Nevertheless, if it doesn't detect a change but a syntax error, it will just sto
135135
To test the backend run:
136136

137137
```bash
138-
DOMAIN=backend sh ./script-test.sh
138+
DOMAIN=backend sh ./scripts/test.sh
139139
```
140140

141-
The file `./script-test.sh` has the commands to generate a testing `docker-stack.yml` file from the needed Docker Compose files, start the stack and test it.
141+
The file `./scripts/test.sh` has the commands to generate a testing `docker-stack.yml` file from the needed Docker Compose files, start the stack and test it.
142142

143143
The tests run with Pytest, modify and add tests to `./backend/app/app/tests/`.
144144

@@ -370,7 +370,7 @@ Then you need to have those constraints in your deployment Docker Compose file f
370370
To be able to use different environments, like `prod` and `stag`, you should pass the name of the stack as an environment variable. Like:
371371

372372
```bash
373-
STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}} sh ./script-deploy.sh
373+
STACK_NAME={{cookiecutter.docker_swarm_stack_name_staging}} sh ./scripts/deploy.sh
374374
```
375375

376376
To use and expand that environment variable inside the `docker-compose.deploy.volumes-placement.yml` files you can add the constraints to the services like:
@@ -387,7 +387,7 @@ services:
387387
- node.labels.${STACK_NAME}.app-couchbase-data == true
388388
```
389389
390-
note the `${STACK_NAME}`. In the script `./script-deploy.sh`, that `docker-compose.deploy.volumes-placement.yml` would be converted, and saved to a file `docker-stack.yml` containing:
390+
note the `${STACK_NAME}`. In the script `./scripts/deploy.sh`, that `docker-compose.deploy.volumes-placement.yml` would be converted, and saved to a file `docker-stack.yml` containing:
391391

392392
```yaml
393393
version: '3.3'
@@ -479,7 +479,7 @@ Here are the steps in detail:
479479
* Use the provided `script-build.sh` file with those environment variables:
480480

481481
```bash
482-
TAG=prod FRONTEND_ENV=production bash ./script-build.sh
482+
TAG=prod FRONTEND_ENV=production bash ./scripts/build.sh
483483
```
484484

485485
2. **Optionally, push your images to a Docker Registry**
@@ -494,7 +494,7 @@ If you are using a registry and pushing your images, you can omit running the pr
494494
* Use the provided `script-build-push.sh` file with those environment variables:
495495

496496
```bash
497-
TAG=prod FRONTEND_ENV=production bash ./script-build.sh
497+
TAG=prod FRONTEND_ENV=production bash ./scripts/build-push.sh
498498
```
499499

500500
3. **Deploy your stack**
@@ -511,7 +511,7 @@ DOMAIN={{cookiecutter.domain_main}} \
511511
TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}} \
512512
STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}} \
513513
TAG=prod \
514-
bash ./script-deploy.sh
514+
bash ./scripts/deploy.sh
515515
```
516516

517517
---

0 commit comments

Comments
 (0)