Permalink
Browse files

Adding postgres for production

  • Loading branch information...
1 parent 5476f57 commit e8dc88dffadfc9737a35f7342cfdee0ad728c6f0 @manojlds committed Feb 25, 2014
Showing with 18 additions and 5 deletions.
  1. +8 −3 Gemfile
  2. +8 −0 Gemfile.lock
  3. +2 −2 config/database.yml
View
11 Gemfile
@@ -3,9 +3,6 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
-# Use sqlite3 as the database for Active Record
-gem 'sqlite3'
-
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
@@ -33,12 +30,18 @@ group :doc do
end
group :development, :test do
+ gem 'sqlite3'
gem 'rspec-rails'
gem 'capybara'
gem 'selenium-webdriver'
gem 'database_cleaner'
end
+group :production do
+ gem 'rails_12factor'
+ gem 'pg'
+end
+
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'
@@ -51,3 +54,5 @@ end
# Use debugger
# gem 'debugger', group: [:development, :test]
+
+ruby "2.0.0"
View
8 Gemfile.lock
@@ -66,6 +66,7 @@ GEM
multi_json (1.8.4)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
+ pg (0.17.1)
polyglot (0.3.4)
rack (1.5.2)
rack-test (0.6.2)
@@ -78,6 +79,11 @@ GEM
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.2)
sprockets-rails (~> 2.0.0)
+ rails_12factor (0.0.2)
+ rails_serve_static_assets
+ rails_stdout_logging
+ rails_serve_static_assets (0.0.2)
+ rails_stdout_logging (0.0.3)
railties (4.0.2)
actionpack (= 4.0.2)
activesupport (= 4.0.2)
@@ -147,7 +153,9 @@ DEPENDENCIES
database_cleaner
jbuilder (~> 1.2)
jquery-rails
+ pg
rails (= 4.0.2)
+ rails_12factor
rspec-rails
sass-rails (~> 4.0.0)
sdoc
View
4 config/database.yml
@@ -19,7 +19,7 @@ test:
timeout: 5000
production:
- adapter: sqlite3
- database: db/production.sqlite3
+ adapter: postgresql
+ database: rails_ci_example_db
pool: 5
timeout: 5000

0 comments on commit e8dc88d

Please sign in to comment.