2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:36:40 +08:00

FEATURE: add support for bootsnap in dev

To use bootsnap which speeds up rails boot add

BOOTSNAP=1 to your env
This commit is contained in:
Sam Saffron 2017-04-25 10:15:12 -07:00
parent 9051ca7959
commit 1ae67a21f5
3 changed files with 20 additions and 1 deletions

View file

@ -1,6 +1,7 @@
source 'https://rubygems.org'
# if there is a super emergency and rubygems is playing up, try
#source 'http://production.cf.rubygems.org'
gem 'bootsnap', require: false
def rails_master?
ENV["RAILS_MASTER"] == '1'