Skip to content

Commit

Permalink
Set geonames usernames using environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Aug 22, 2023
1 parent 9d06f2b commit e71ec9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dassie/config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
config.browse_everything = nil
end

# config.geonames_username = ''
config.geonames_username = ENV['GEONAMES_USERNAME'] || ''

##
# Set the system-wide virus scanner
Expand Down
2 changes: 1 addition & 1 deletion .koppie/config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

# Location autocomplete uses geonames to search for named regions
# Username for connecting to geonames
# config.geonames_username = ''
config.geonames_username = ENV['GEONAMES_USERNAME'] || ''

# Should the acceptance of the licence agreement be active (checkbox), or
# implied when the save button is pressed? Set to true for active
Expand Down
1 change: 1 addition & 0 deletions docker-compose-koppie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
- .koppie/.env
environment:
- RAILS_ROOT=/app/samvera/hyrax-webapp
- GEONAMES_USERNAME=username
depends_on:
- chrome
- db_migrate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

# Location autocomplete uses geonames to search for named regions
# Username for connecting to geonames
# config.geonames_username = ''
config.geonames_username = ENV['GEONAMES_USERNAME'] || ''

# Should the acceptance of the licence agreement be active (checkbox), or
# implied when the save button is pressed? Set to true for active
Expand Down

0 comments on commit e71ec9f

Please sign in to comment.