Skip to content

Commit

Permalink
Merge pull request #33 from UCLALibrary/iiif
Browse files Browse the repository at this point in the history
Fix Universal Viewer and IIIF
  • Loading branch information
ksclarke committed Jul 26, 2018
2 parents c48fdf6 + ce802b5 commit bbf1afb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.public_file_server.enabled = true

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@

# Temporary paths to hold uploads before they are ingested into FCrepo
# These must be lambdas that return a Pathname. Can be configured separately
# config.upload_path = ->() { Rails.root + 'tmp' + 'uploads' }
# config.cache_path = ->() { Rails.root + 'tmp' + 'uploads' + 'cache' }
config.upload_path = ->() { Pathname.new(ENV['UPLOAD_PATH'] || '/opt/uploads') }
config.cache_path = ->() { Pathname.new(ENV['CACHE_PATH'] || '/opt/uploads/cache') }

# Location on local file system where derivatives will be stored
# If you use a multi-server architecture, this MUST be a shared volume
Expand All @@ -199,7 +199,7 @@
# Location on local file system where uploaded files will be staged
# prior to being ingested into the repository or having derivatives generated.
# If you use a multi-server architecture, this MUST be a shared volume.
# config.working_path = Rails.root.join( 'tmp', 'uploads')
config.working_path = ENV['WORKING_PATH'] || '/opt/uploads'

# Should the media display partial render a download link?
# config.display_media_download_link = true
Expand Down

0 comments on commit bbf1afb

Please sign in to comment.