aboutsummaryrefslogtreecommitdiff
path: root/app/models/backends/terraform_aws
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-03 11:43:13 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-03 11:44:52 +0100
commit6b466d156932f0f16f2f8ae13a789f51ecece58b (patch)
tree08b89677fdd1be575c771ed043e1bb6c07cdd175 /app/models/backends/terraform_aws
parent920e39eee797117cb0242bdb6f56d151ef2287fb (diff)
downloadgovuk-mini-environment-admin-6b466d156932f0f16f2f8ae13a789f51ecece58b.tar
govuk-mini-environment-admin-6b466d156932f0f16f2f8ae13a789f51ecece58b.tar.gz
Use Plek for finding the GOV.UK Mini Environment Adminrelease_7
Rather than hardcoding localhost.
Diffstat (limited to 'app/models/backends/terraform_aws')
-rw-r--r--app/models/backends/terraform_aws/mini_environment_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/backends/terraform_aws/mini_environment_methods.rb b/app/models/backends/terraform_aws/mini_environment_methods.rb
index 350df2a..bdb0ab4 100644
--- a/app/models/backends/terraform_aws/mini_environment_methods.rb
+++ b/app/models/backends/terraform_aws/mini_environment_methods.rb
@@ -104,7 +104,7 @@ module Backends::TerraformAws::MiniEnvironmentMethods
slug: mini_environment.name.parameterize,
start_command: mini_environment.backend_data['build_output'],
backend_remote_state_address: (
- 'http://localhost:3000' +
+ Plek.new.external_url_for('mini-environment-admin') +
Rails
.application
.routes