Skip to content

Commit

Permalink
Update with review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-dfe committed Nov 14, 2024
1 parent d58904a commit 190b1c7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
4 changes: 0 additions & 4 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ test: &test
#
production: &production
<<: *default
# host: <%= ENV['DB_HOST'] %>
# database: <%= ENV['DB_DATABASE'] %>
# username: <%= ENV['DB_USERNAME'] %>
# password: <%= ENV['DB_PASSWORD'] %>
keepalives: 1
keepalives_idle: 60
keepalives_interval: 20
Expand Down
2 changes: 1 addition & 1 deletion script/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ while [[ $# -gt 0 ]]; do
;;
-e|prepare)
echo Preparing database
bundle exec rails db:prepare && bundle exec rails data:schools:sample_import
bundle exec rails db:prepare
shift
;;
-p|profile)
Expand Down
30 changes: 15 additions & 15 deletions terraform/aks/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ module "postgres" {
count = 1
source = "./vendor/modules/aks//aks/postgres"

namespace = var.namespace
environment = var.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = var.service_name
service_short = var.service_short
config_short = var.config_short
cluster_configuration_map = module.cluster_data.configuration_map
use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
server_version = "14"
azure_sku_name = var.postgres_flexible_server_sku
azure_enable_backup_storage = var.azure_enable_backup_storage
azure_extensions = ["POSTGIS", "address_standardizer", "plpgsql", "postgis_raster", "uuid-ossp", "citext"]
namespace = var.namespace
environment = var.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = var.service_name
service_short = var.service_short
config_short = var.config_short
cluster_configuration_map = module.cluster_data.configuration_map
use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
server_version = "14"
azure_sku_name = var.postgres_flexible_server_sku
azure_enable_backup_storage = var.azure_enable_backup_storage
azure_extensions = ["POSTGIS", "address_standardizer", "plpgsql", "postgis_raster", "uuid-ossp", "citext"]
azure_enable_high_availability = var.postgres_enable_high_availability
azure_maintenance_window = var.azure_maintenance_window
server_docker_image = "postgis/postgis:14-3.4"
create_database = var.create_database
server_docker_image = "postgis/postgis:14-3.4"
create_database = var.create_database
}

module "redis-cache" {
Expand Down

0 comments on commit 190b1c7

Please sign in to comment.