Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Rakefile - suppress failure to load app_version_tasks in production
Browse files Browse the repository at this point in the history
  • Loading branch information
dazza-codes committed Sep 30, 2016
1 parent 5b1eda8 commit 4e6e317
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ require File.expand_path('../config/application', __FILE__)

Rails.application.load_tasks

# From https://github.com/sul-dlss/app_version_tasks
# A default configuration works for this application.
spec = Gem::Specification.find_by_name 'app_version_tasks'
load "#{spec.gem_dir}/lib/tasks/app_version_tasks.rake"
require 'app_version_tasks'
begin
# From https://github.com/sul-dlss/app_version_tasks
# A default configuration works for this application.
spec = Gem::Specification.find_by_name 'app_version_tasks'
load "#{spec.gem_dir}/lib/tasks/app_version_tasks.rake"
require 'app_version_tasks'
rescue Gem::LoadError
end

0 comments on commit 4e6e317

Please sign in to comment.