From b57f8454b5ebc09317c580f977e7fcbe07c1f985 Mon Sep 17 00:00:00 2001 From: Owain Llewellyn Date: Sat, 22 Sep 2018 14:38:09 +0100 Subject: [PATCH] fix: added environment file copy to build --- Dockerfile | 1 + config/environments/production.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f0879e..905a465 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ RUN cp config/parameters_edit-sample.yml config/parameters_edit.yml RUN cp config/parameter_renderers-sample.yml config/parameter_renderers.yml RUN cp config/roles-sample.yml config/roles.yml RUN cp config/users-sample.yml config/users.yml +RUN cp config/environments/production.rb config/production.rb RUN bundle ENTRYPOINT ["rails", "s"] diff --git a/config/environments/production.rb b/config/environments/production.rb index e436d32..497b9ba 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,7 +85,7 @@ config.active_record.dump_schema_after_migration = false # GenieACS API - config.genieacs_api_host = 'localhost' - config.genieacs_api_port = 7557 + config.genieacs_api_host = ENV['GENIEACS_NBI_IP'] + config.genieacs_api_port = ENV['GENIEACS_NBI_PORT'] config.genieacs_api_use_ssl = false end