Permalink
Browse files

Use sqlite for development/testing, mysql2 for production.

If you don't have mysql2 installed, you should see the comment in Gemfile.
  • Loading branch information...
bamnet committed Jun 2, 2012
1 parent 40dccc0 commit 702f28cb1d2d75ceeaccd429510db6ddc5f1962d
Showing with 10 additions and 11 deletions.
  1. +5 −7 Gemfile
  2. +5 −4 config/database.yml.sample
View
12 Gemfile
@@ -17,13 +17,11 @@ end
gem 'jquery-rails'
-group :development do
- gem "sqlite3"
-end
-
-group :production do
- gem "mysql2"
-end
+# In production we prefer MySQL over sqlite3. If you are only
+# interested in development and don't want to bother with production,
+# run `bundle install --without production` to ignore MySQL.
+gem "sqlite3", :group => [:development, :test]
+gem "mysql2", :group => [:production]
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
@@ -16,7 +16,8 @@ test:
timeout: 5000
production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
+ adapter: mysql2
+ database: concerto_production
+ username: concerto
+ password:
+ host: localhost

0 comments on commit 702f28c

Please sign in to comment.