From 49f48986f2530e96bb0bb1d379327ac2741e473f Mon Sep 17 00:00:00 2001 From: Nick Keane Date: Sun, 16 Feb 2020 11:22:35 -0500 Subject: [PATCH] updates for heroku deployment --- Gemfile | 9 ++++++++- Gemfile.lock | 2 ++ config/routes.rb | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a166847..4154274 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,14 @@ ruby '2.6.5' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.2.3' # Use sqlite3 as the database for Active Record -gem 'sqlite3' +#gem 'sqlite3' +group :development, :test do + gem 'sqlite3' +end + +group :production do + gem 'pg' +end # Use Puma as the app server gem 'puma', '~> 3.11' # Use SCSS for stylesheets diff --git a/Gemfile.lock b/Gemfile.lock index f54fd08..07cdffe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -103,6 +103,7 @@ GEM nio4r (2.5.2) nokogiri (1.10.8) mini_portile2 (~> 2.4.0) + pg (1.2.2) public_suffix (4.0.3) puma (3.12.2) rack (2.2.2) @@ -197,6 +198,7 @@ DEPENDENCIES coffee-rails (~> 4.2) jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) + pg puma (~> 3.11) rails (~> 5.2.3) sass-rails (~> 5.0) diff --git a/config/routes.rb b/config/routes.rb index f97e1d3..f12782c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do + root 'cars#index' resources :cars # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end