Skip to content

Commit

Permalink
Remove coverband (#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
samnang authored Jan 9, 2025
1 parent 4cec41a commit 195edad
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 81 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ gem "bitmask_attributes", github: "numerex/bitmask_attributes"
gem "bootsnap", require: false
gem "cocoon"
gem "cssbundling-rails"
gem "coverband"
gem "countries"
gem "cursor_paginator"
gem "devise"
Expand Down
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ GEM
connection_pool (2.4.1)
countries (7.1.0)
unaccent (~> 0.3)
coverband (6.1.4)
redis (>= 3.0)
crack (1.0.0)
bigdecimal
rexml
Expand Down Expand Up @@ -476,10 +474,6 @@ GEM
ffi (~> 1.0)
rdoc (6.9.1)
psych (>= 4.0.0)
redis (5.3.0)
redis-client (>= 0.22.0)
redis-client (0.22.2)
connection_pool
regexp_parser (2.10.0)
reline (0.6.0)
io-console (~> 0.5)
Expand Down Expand Up @@ -636,7 +630,6 @@ DEPENDENCIES
capybara
cocoon
countries
coverband
cssbundling-rails
cursor_paginator
devise
Expand Down
1 change: 0 additions & 1 deletion config/app_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ default: &default
audio_bucket: <%= ENV.fetch("AUDIO_BUCKET", "audio.somleng.org") %>
admin_username: "admin"
admin_password: "password"
coverband_redis_url: "<%= ENV.fetch("COVERBAND_REDIS_URL", "redis://localhost:6379") %>"

production: &production
<<: *default
Expand Down
9 changes: 0 additions & 9 deletions config/coverband.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/initializers/coverband.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

namespace :admin do
mount(PgHero::Engine, at: "pghero")
mount Coverband::Reporters::Web.new, at: "coverage"
end

namespace "dashboard" do
Expand Down
30 changes: 0 additions & 30 deletions infrastructure/core/elasticache.tf

This file was deleted.

8 changes: 0 additions & 8 deletions infrastructure/core/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,3 @@ output "rds_cluster" {
value = module.rds_cluster
sensitive = true
}

output "elasticache_redis_endpoint" {
value = aws_elasticache_cluster.redis.cache_nodes.0.address
}

output "redis_security_group" {
value = aws_security_group.redis
}
8 changes: 0 additions & 8 deletions infrastructure/core/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ variable "aws_region" {
default = "ap-southeast-1"
}

variable "redis_security_group_name" {
default = "somleng-redis"
}

variable "redis_cluster_id" {
default = "somleng-redis"
}

locals {
region = data.terraform_remote_state.core_infrastructure.outputs.hydrogen_region
}
6 changes: 0 additions & 6 deletions infrastructure/modules/scfm/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ locals {
{
name = "AUDIO_BUCKET",
value = aws_s3_bucket.audio.id
},
{
name = "COVERBAND_REDIS_URL",
value = var.redis_url
}
]

Expand Down Expand Up @@ -187,7 +183,6 @@ resource "aws_ecs_service" "webserver" {
security_groups = [
aws_security_group.webserver.id,
var.rds_cluster.security_group.id,
var.redis_security_group
]
}

Expand Down Expand Up @@ -268,7 +263,6 @@ resource "aws_ecs_service" "worker" {
security_groups = [
aws_security_group.worker.id,
var.rds_cluster.security_group.id,
var.redis_security_group
]
}

Expand Down
2 changes: 0 additions & 2 deletions infrastructure/modules/scfm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ variable "cdn_certificate" {}
variable "region" {}
variable "global_accelerator" {}
variable "rds_cluster" {}
variable "redis_security_group" {}
variable "redis_url" {}

variable "webserver_container_port" {
default = 80
Expand Down
4 changes: 0 additions & 4 deletions infrastructure/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ module "scfm" {
db_name = "scfm"
worker_min_tasks = 1
worker_max_tasks = 10

redis_security_group = data.terraform_remote_state.core.outputs.redis_security_group.id
redis_url = "redis://${data.terraform_remote_state.core.outputs.elasticache_redis_endpoint}/0"

}
3 changes: 0 additions & 3 deletions infrastructure/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ module "scfm" {
webserver_max_tasks = 0
worker_min_tasks = 0
worker_max_tasks = 0

redis_security_group = data.terraform_remote_state.core.outputs.redis_security_group.id
redis_url = "redis://${data.terraform_remote_state.core.outputs.elasticache_redis_endpoint}/1"
}

0 comments on commit 195edad

Please sign in to comment.