Skip to content

Commit

Permalink
fix: added environment file copy to build
Browse files Browse the repository at this point in the history
  • Loading branch information
bilbercode authored and jakekeeys committed Sep 22, 2018
1 parent f9fc3d6 commit b57f845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b57f845

Please sign in to comment.