Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/move-deployment-instructions #383

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,24 @@ for our CSS so it can be cached.
The govuk assets are versioned in the `npm` package. On initial app setup you will need to run `poetry run python manage.py collectstatic` to copy them to the `frontend` folder from where `runserver` can serve them.

We’ll revisit this process when we deploy the app.



## How to deploy

checkout the `main` branch of the following repos:
* https://github.com/i-dot-ai/redbox-copilot
* https://github.com/i-dot-ai/i-ai-core-infrastructure/
* https://github.com/i-dot-ai/redbox-copilot-infra-config


If, and only if, you want to deploy something other than HEAD then replace `var.image_tag` in `infrastructure/aws/ecs.tf` with the hash of the build you want deployed.


Now run the commands below remembering to replace ENVIRONMENT with `dev`, `preprod` or `prod`

```commandline
cd redbox-copilot
make tf_init
make tf_apply env=<ENVIRONMENT>
```
17 changes: 0 additions & 17 deletions django_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,3 @@
1. copy `.env.django` to `django_app/.env`
2. (re)start postgres and minio `docker-compose up -d db minio`
3. `make test-django`


## How to deploy to dev

checkout the `main` branch of the following repos:
* https://github.com/i-dot-ai/redbox-copilot
* https://github.com/i-dot-ai/i-ai-core-infrastructure/
* https://github.com/i-dot-ai/redbox-copilot-infra-config


If, and only if, you want to deploy something other than HEAD then replace `var.image_tag` in `infrastructure/aws/ecs.tf` with the hash of the build you want deployed.

```commandline
cd redbox-copilot
make tf_init
make tf_apply env=dev
```
Loading