From a0c4bcc2246f0c667f1115cf4c6c21c2de2ed79d Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 28 Feb 2015 18:21:06 +0100 Subject: [PATCH] Trouble with sqlite3 in production... --- Gemfile | 24 +++++++++++++++--------- Gemfile.lock | 16 ++++++++++++++++ config.ru | 2 +- db/schema_cache.dump | Bin 7970 -> 0 bytes 4 files changed, 32 insertions(+), 10 deletions(-) delete mode 100644 db/schema_cache.dump diff --git a/Gemfile b/Gemfile index 8720fd89..b1be4af1 100644 --- a/Gemfile +++ b/Gemfile @@ -19,8 +19,8 @@ gem 'therubyracer', platforms: :ruby # Use jquery as the JavaScript library gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: -# https://github.com/rails/turbolinks +# Turbolinks makes following links in your web application +# faster. Read more: https://github.com/rails/turbolinks gem 'turbolinks' gem 'jquery-turbolinks' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder @@ -94,13 +94,6 @@ gem 'meta-tags' gem 'twitter' group :development do - # Spring speeds up development by keeping your application running in the - # background. Read more: https://github.com/rails/spring - gem 'spring' - # Removed, because requires ruby > 2 - # gem 'better_errors' - # gem 'binding_of_caller' - gem 'sqlite3' gem 'guard-livereload' gem 'guard-migrate' @@ -119,6 +112,19 @@ group :test do gem 'simplecov' end +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger + # console + gem 'byebug' + + # Access an IRB console on exception pages or by using <%= console %> in views + gem 'web-console', '~> 2.0' + + # Spring speeds up development by keeping your application running in the + # background. Read more: https://github.com/rails/spring + gem 'spring' +end + group :production do # Use mysql as the database for Active Record gem 'mysql2' diff --git a/Gemfile.lock b/Gemfile.lock index f107f1af..a98112e9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,6 +81,8 @@ GEM astrolabe (1.3.0) parser (>= 2.2.0.pre.3, < 3.0) bcrypt (3.1.10) + binding_of_caller (0.7.2) + debug_inspector (>= 0.0.1) bourbon (4.2.1) sass (~> 3.4) thor @@ -96,6 +98,10 @@ GEM terminal-table (~> 1.4) buftok (0.2.0) builder (3.2.2) + byebug (3.5.1) + columnize (~> 0.8) + debugger-linecache (~> 1.2) + slop (~> 3.6) celluloid (0.16.0) timers (~> 4.0.0) chunky_png (1.3.4) @@ -107,6 +113,7 @@ GEM coffee-script-source execjs coffee-script-source (1.9.1) + columnize (0.9.0) compass (1.0.3) chunky_png (~> 1.2) compass-core (~> 1.0.2) @@ -123,6 +130,8 @@ GEM compass (~> 1.0.0) sass-rails (<= 5.0.1) sprockets (< 2.13) + debug_inspector (0.0.2) + debugger-linecache (1.2.0) devise (3.4.1) bcrypt (~> 3.0) orm_adapter (~> 0.1) @@ -408,6 +417,11 @@ GEM json (>= 1.8.0) warden (1.2.3) rack (>= 1.0) + web-console (2.1.0) + activemodel (>= 4.0) + binding_of_caller (>= 0.7.2) + railties (>= 4.0) + sprockets-rails (>= 2.0, < 4.0) webrick (1.3.1) webshims-rails (1.15.6.2) rails (> 3.1.0) @@ -420,6 +434,7 @@ DEPENDENCIES activeadmin! activeadmin_pagedown brakeman + byebug coffee-rails compass-rails devise @@ -466,5 +481,6 @@ DEPENDENCIES turbolinks twitter uglifier + web-console (~> 2.0) webrick (>= 1.3.1) webshims-rails diff --git a/config.ru b/config.ru index 5bc2a619..bd83b254 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) +require ::File.expand_path('../config/environment', __FILE__) run Rails.application diff --git a/db/schema_cache.dump b/db/schema_cache.dump deleted file mode 100644 index c4934c135ebdc5fef4761f1ffac50bc70308038f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7970 zcmb_hPl()P6yGnD-TA+}({)>0D>b6l*2=hTRT7j}`_Eu0wjB}N!;nqBou&m$<)(MUh>}ez5l=W zc2DIcY2&o!89Vd})oe$Xq%*c9Wt*=4fEmr5af3fGXmWp)bmdU1=FK z)%AMb?IE?L!)ZBPBubK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