Skip to content

Commit 813aa02

Browse files
SamJamCullfdebrux
andcommitted
Add EMAIL environment variable to review app
When seeding the database, the seed needs to draw an email from either the EMAIL environment variable, or from the user's git login - which isn't available in review apps. We need to set an EMAIL env var when setting up a review app so that it can populate the db accordingly. Co-authored-by: Laurence de Bruxelles <laurence.debruxelles@dsit.gov.uk>
1 parent 159fcce commit 813aa02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.review_apps/ecs_task_definition.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ locals {
4747
forms_admin_env_vars = [
4848
{ name = "DATABASE_URL", value = "postgres://postgres:postgres@127.0.0.1:5432" },
4949
{ name = "GOVUK_APP_DOMAIN", value = "publishing.service.gov.uk" },
50+
{ name = "EMAIL", value = "review-app-submissions@review.forms.service.gov.uk" },
5051
{ name = "PORT", value = "3000" },
5152
{ name = "RAILS_DEVELOPMENT_HOSTS", value = local.admin_app_hostname },
5253
{ name = "RAILS_ENV", value = "production" },

0 commit comments

Comments
 (0)