Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 720f316

Browse files
committed
PG for Heroku
1 parent ef84c7c commit 720f316

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ end
99
gem 'rails', '~> 5.0.1'
1010
# Use sqlite3 as the database for Active Record
1111
gem 'sqlite3'
12+
# use PG in prod for heroku
13+
gem 'pg'
1214
# Use Puma as the app server
1315
gem 'puma', '~> 3.0'
1416
# Use GraphQL!

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ GEM
6767
nio4r (1.2.1)
6868
nokogiri (1.7.0.1)
6969
mini_portile2 (~> 2.1.0)
70+
pg (0.19.0)
7071
puma (3.7.0)
7172
rack (2.0.1)
7273
rack-test (0.6.3)
@@ -132,6 +133,7 @@ DEPENDENCIES
132133
graphiql-rails (~> 1.4.1)
133134
graphql (~> 1.4.3)
134135
listen (~> 3.0.5)
136+
pg
135137
puma (~> 3.0)
136138
rails (~> 5.0.1)
137139
spring

config/database.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ test:
2121
database: db/test.sqlite3
2222

2323
production:
24-
<<: *default
25-
database: db/production.sqlite3
24+
adapter: postgresql
25+
database: swapi_graphql_ruby_production
26+
pool: 5
27+
timeout: 5000

0 commit comments

Comments
 (0)