Skip to content

Commit

Permalink
ability to use sqlite3 for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlegawiec committed May 22, 2024
1 parent 167f289 commit 2dcc528
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ gem 'spree_backend', github: 'spree/spree_backend', branch: 'main'
gem 'spree_emails', github: 'spree/spree', branch: 'main'
gem 'spree_frontend', github: 'spree/spree_legacy_frontend', branch: 'main'

if ENV['DB'] == 'mysql'
gem 'mysql2'
else
gem 'pg'
platforms :ruby do
if ENV['DB'] == 'mysql'
gem 'mysql2'
elsif ENV['DB'] == 'postgres'
gem 'pg'
else
gem 'sqlite3', '~> 1.4'
end
end

gem 'pry'
Expand Down

0 comments on commit 2dcc528

Please sign in to comment.