Skip to content

Commit

Permalink
Add bootsnap.
Browse files Browse the repository at this point in the history
  • Loading branch information
benubois committed Jan 2, 2018
1 parent 52b9d60 commit feb816c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ group :development do
gem 'capistrano-rails'
gem 'better_errors'
gem 'silencer'
gem 'spring'
gem 'benchmark-ips'
gem 'xipio'
gem 'listen'
Expand Down Expand Up @@ -95,6 +94,7 @@ gem 'raindrops'
gem 'curb'
gem 'twitter'
gem 'twitter-text'
gem 'bootsnap', require: false

# Stripe
gem 'stripe'
Expand Down
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ GEM
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
bootsnap (1.1.7)
msgpack (~> 1.0)
buftok (0.2.0)
builder (3.2.3)
byebug (9.1.0)
Expand Down Expand Up @@ -302,6 +304,7 @@ GEM
mini_portile2 (2.3.0)
minitest (5.10.3)
minitest-stub-const (0.6)
msgpack (1.2.0)
multi_json (1.12.2)
multi_xml (0.6.0)
multipart-post (2.0.0)
Expand Down Expand Up @@ -422,8 +425,6 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
spring (2.0.2)
activesupport (>= 4.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -500,6 +501,7 @@ DEPENDENCIES
bcrypt-ruby
benchmark-ips
better_errors
bootsnap
byebug
capistrano
capistrano-bundler
Expand Down Expand Up @@ -561,7 +563,6 @@ DEPENDENCIES
selenium-webdriver
sidekiq
silencer
spring
stripe
stripe-ruby-mock
stripe_event
Expand Down
15 changes: 0 additions & 15 deletions bin/spring

This file was deleted.

2 changes: 0 additions & 2 deletions bin/yarn
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Dir.chdir(VENDOR_PATH) do
begin
exec "yarnpkg #{ARGV.join(" ")}"
rescue Errno::ENOENT
$stderr.puts "Yarn executable was not detected in the system."
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
exit 1
end
end
1 change: 1 addition & 0 deletions config/boot.rb
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 0 additions & 6 deletions config/spring.rb

This file was deleted.

6 changes: 3 additions & 3 deletions lib/tasks/feedbin_reset.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace :feedbin do
sh = "ps xa | grep postgres: | grep #{db_name} | grep -v grep | awk '{print $1}' | xargs kill"
puts `#{sh}`

# FileUtils.mkdir_p(File.join(Rails.root, 'tmp'))
# restart_file = File.join(Rails.root, 'tmp', 'restart.txt')
# Kernel.system "touch #{restart_file}"
FileUtils.mkdir_p(File.join(Rails.root, 'tmp'))
restart_file = File.join(Rails.root, 'tmp', 'restart.txt')
Kernel.system "touch #{restart_file}"
Kernel.system "rake --trace db:reset"
Kernel.system "open 'https://feedbin.dev/login'"
Kernel.system "redis-cli 'flushdb'"
Expand Down

0 comments on commit feb816c

Please sign in to comment.