From 021cf7f8ed56070908997400406498da3b9041ee Mon Sep 17 00:00:00 2001 From: Omar Rodriguez Arenas Date: Tue, 13 Oct 2020 14:02:14 -0600 Subject: [PATCH] Add nulldb adapter for assets:precompile in prod The gem activerecord-nulldb-adapter is required so we can run the rake assets:precompile without initializing the database. --- Gemfile | 5 +++++ Gemfile.lock | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Gemfile b/Gemfile index dcc72572a9..582803262c 100644 --- a/Gemfile +++ b/Gemfile @@ -44,6 +44,11 @@ group :pgsql do gem 'pg', '~> 0.19.0' end +group :nulldb do + # A null db adapter so we can perform tast rake assets:precompile with production environment without a live database. + gem "activerecord-nulldb-adapter" +end + group :thin do # A thin and fast web server (http://code.macournoyer.com/thin/) gem 'thin' diff --git a/Gemfile.lock b/Gemfile.lock index dcc90dc09e..a75e559411 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -30,6 +30,8 @@ GEM activemodel (= 4.2.11.3) activesupport (= 4.2.11.3) arel (~> 6.0) + activerecord-nulldb-adapter (0.4.0) + activerecord (>= 2.0.0) activerecord-session_store (1.1.3) actionpack (>= 4.0) activerecord (>= 4.0) @@ -483,6 +485,7 @@ PLATFORMS ruby DEPENDENCIES + activerecord-nulldb-adapter activerecord-session_store annotate annotate_gem