diff --git a/Gemfile b/Gemfile index 6454a20..eab08e7 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,7 @@ gem 'rails', '~> 7.0.3.1' gem 'sprockets-rails' gem 'pg', '~> 1.4.1' +gem 'sqlite3' gem 'puma', '~> 5.6.4' gem 'multi_json' gem 'uglifier' diff --git a/Gemfile.lock b/Gemfile.lock index ae5d67f..5463634 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -259,6 +259,8 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) + sqlite3 (1.7.3) + mini_portile2 (~> 2.8.0) strscan (3.0.4) thor (1.2.1) timeout (0.3.0) @@ -304,6 +306,7 @@ DEPENDENCIES rspec_junit_formatter selenium-webdriver sprockets-rails + sqlite3 tzinfo-data uglifier webdrivers diff --git a/config/cable.yml b/config/cable.yml index 4b4b2b4..2cfe86f 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -1,12 +1,10 @@ development: - adapter: postgresql - database: webhooks-consumer-demo-development - channel_prefix: webhooks-consumer-demo_development + adapter: async test: adapter: async production: - adapter: postgresql - url: <%= ENV.fetch("DATABASE_URL") {} %> + adapter: async + url: redis://localhost:6379/1 channel_prefix: webhooks-consumer-demo_production diff --git a/config/database.yml b/config/database.yml index 3619a2b..cac8a5d 100644 --- a/config/database.yml +++ b/config/database.yml @@ -15,8 +15,9 @@ # gem 'pg' # default: &default - adapter: postgresql + adapter: sqlite3 encoding: unicode + database: webhooks-sqlite # For details on connection pooling, see Rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>