From 6a1047dd80661b0ebb2708edff490da8d4133025 Mon Sep 17 00:00:00 2001 From: Nikita Kholin Date: Sun, 30 Jul 2017 00:03:21 +0300 Subject: [PATCH] Set up bootsnap to increase server loading speed --- Gemfile | 1 + Gemfile.lock | 4 ++++ config/boot.rb | 1 + 3 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index d2a1edd..cbb8a75 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ git_source(:github) do |repo_name| "https://github.com/#{repo_name}.git" end +gem 'bootsnap', require: false gem 'bootstrap', '~> 4.0.0.alpha6' gem 'coffee-rails', '~> 4.2' gem 'devise' diff --git a/Gemfile.lock b/Gemfile.lock index ae25be8..1a09d29 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -51,6 +51,8 @@ GEM thread_safe (~> 0.3, >= 0.3.1) bcrypt (3.1.11) bindex (0.5.0) + bootsnap (1.1.2) + msgpack (~> 1.0) bootstrap (4.0.0.alpha6) autoprefixer-rails (>= 6.0.3) sass (>= 3.4.19) @@ -156,6 +158,7 @@ GEM mime-types-data (3.2016.0521) mini_portile2 (2.2.0) minitest (5.10.3) + msgpack (1.1.0) multi_json (1.12.1) multi_xml (0.6.0) multipart-post (2.0.0) @@ -352,6 +355,7 @@ PLATFORMS ruby DEPENDENCIES + bootsnap bootstrap (~> 4.0.0.alpha6) byebug capybara diff --git a/config/boot.rb b/config/boot.rb index 30f5120..da8896b 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup'