Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sqlite3 for dev and test only

  • Loading branch information...
commit fe598bcda7e162dcb1dbb80b08b87f8639b375c8 1 parent 89ff1c7
@alexcp authored
Showing with 8 additions and 3 deletions.
  1. +5 −1 Gemfile
  2. +3 −2 config/init.rb
View
6 Gemfile
@@ -5,9 +5,13 @@ gem "thin"
gem "rack"
gem "sequel"
gem 'pg', '0.10.0'
-gem "sqlite3"
gem "sinatra-sequel"
+group :development do
+ gem "sqlite3"
+end
+
group :test do
+ gem "sqlite3"
gem "rspec"
end
View
5 config/init.rb
@@ -1,16 +1,17 @@
require 'sinatra/sequel'
-require 'sqlite3'
-require 'pg'
configure :development do
+ require 'sqlite3'
set :database, 'sqlite://db/development.sqlite'
end
configure :test do
+ require 'sqlite3'
set :database, 'sqlite3::memory:'
end
configure :production do
+ require 'pg'
end
require_relative 'migrations'
Please sign in to comment.
Something went wrong with that request. Please try again.