diff --git a/Gemfile b/Gemfile index 16ee6b94..23545176 100644 --- a/Gemfile +++ b/Gemfile @@ -22,7 +22,13 @@ gem "puma", ">= 6.3.1" # https://github.com/hlascelles/figjam gem "figjam", "2.0.0" -gem "deface" +gem "solid_queue", ">= 1.2.0" + +# Memcached client for Ruby. It is used by Rails to cache data in Memcached. +gem "dalli", "~> 5.0.5" + +# for monitoring +gem "prometheus_exporter", "~> 2.3.1" group :development, :test do gem "byebug", "~> 11.0", platform: :mri diff --git a/Gemfile.lock b/Gemfile.lock index 2f782217..6f970dcf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -141,6 +141,8 @@ GEM css_parser (1.21.1) addressable csv (3.3.5) + dalli (5.0.5) + logger date (3.4.1) date_validator (0.12.0) activemodel (>= 3) @@ -329,12 +331,6 @@ GEM declarative-builder (0.2.0) trailblazer-option (~> 0.1.0) declarative-option (0.1.0) - deface (1.9.0) - actionview (>= 5.2) - nokogiri (>= 1.6) - polyglot - railties (>= 5.2) - rainbow (>= 2.1.0) devise (4.9.4) bcrypt (~> 3.0) orm_adapter (~> 0.1) @@ -584,7 +580,6 @@ GEM pg_search (2.3.7) activerecord (>= 6.1) activesupport (>= 6.1) - polyglot (0.3.5) premailer (1.27.0) addressable css_parser (>= 1.19.0) @@ -594,6 +589,8 @@ GEM net-smtp premailer (~> 1.7, >= 1.7.9) prism (1.4.0) + prometheus_exporter (2.3.1) + webrick public_suffix (6.0.2) puma (6.6.1) nio4r (~> 2.0) @@ -814,6 +811,7 @@ GEM addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) + webrick (1.9.2) websocket (1.2.11) websocket-driver (0.8.0) base64 @@ -832,17 +830,18 @@ DEPENDENCIES bootsnap (~> 1.7) brakeman (~> 7.0) byebug (~> 11.0) + dalli (~> 5.0.5) decidim (= 0.30.9) decidim-cdtb (~> 0.5.5) decidim-core (= 0.30.9) decidim-dev (= 0.30.9) decidim-signature_collection! - deface figjam (= 2.0.0) letter_opener_web (~> 2.0) listen (~> 3.1) net-imap (~> 0.5.0) net-pop (~> 0.1.1) + prometheus_exporter (~> 2.3.1) puma (>= 6.3.1) web-console (~> 4.2) diff --git a/config/environments/production.rb b/config/environments/production.rb index b934b261..42e0fce6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -57,7 +57,7 @@ config.log_tags = [:request_id] # Use a different cache store in production. - # config.cache_store = :mem_cache_store + config.cache_store = :mem_cache_store, ENV["MEMCACHE_URL"], { namespace: "decidim_signature_collection" } # Use a real queuing backend for Active Job (and separate queues per environment). # config.active_job.queue_adapter = :resque diff --git a/config/initializers/figjam.rb b/config/initializers/figjam.rb index 4ea0c8b2..ec707ffa 100644 --- a/config/initializers/figjam.rb +++ b/config/initializers/figjam.rb @@ -16,5 +16,6 @@ elsif env.preprod? || env.production? Figjam.require_keys( "DATABASE_URL" + "MEMCACHE_URL" ) end diff --git a/package.json b/package.json index 16076f0f..5f943b18 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "decidim-development-app", + "name": "decidim-signature_collection-app", "private": true, "dependencies": { "@decidim/browserslist-config": "^0.30.9",