mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-09 00:15:05 +00:00
d64055c060
* Bump bootsnap from 1.6.0 to 1.8.1 Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.6.0 to 1.8.1. - [Release notes](https://github.com/Shopify/bootsnap/releases) - [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md) - [Commits](https://github.com/Shopify/bootsnap/compare/v1.6.0...v1.8.1) --- updated-dependencies: - dependency-name: bootsnap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Remove deprecated bootsnap config options Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com>
18 lines
621 B
Ruby
18 lines
621 B
Ruby
unless ENV.key?('RAILS_ENV')
|
|
STDERR.puts 'ERROR: Missing RAILS_ENV environment variable, please set it to "production", "development", or "test".'
|
|
exit 1
|
|
end
|
|
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
|
|
|
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
|
require 'bootsnap' # Speed up boot time by caching expensive operations.
|
|
|
|
Bootsnap.setup(
|
|
cache_dir: File.expand_path('../tmp/cache', __dir__),
|
|
development_mode: ENV.fetch('RAILS_ENV', 'development') == 'development',
|
|
load_path_cache: true,
|
|
compile_cache_iseq: false,
|
|
compile_cache_yaml: false
|
|
)
|