uclibs / ucrate

Scholar@UC: University of Cincinnati's self-submission institutional repository
https://scholar.uc.edu
Other
5 stars 3 forks source link

Allow for env variable for fits in hyrax config #1106

Closed Janell-Huyck closed 8 months ago

Janell-Huyck commented 8 months ago

Adds an optional development environment variable "FITS_FILENAME" to hyrax.rb config file

Developers who have installed "fits" via homebrew have the fits file stored in their computer as "fits", while developers who have installed "fits" via Harvard have the fits file stored in their computer as "fits.sh". The app defaults to "fits.sh", which causes it to crash when run locally from a "fits" machine. The workaround to this has been to update the hyrax config file to indicate that the path should be "fits" instead of the default "fits.sh".

This PR adds an optional environment variable for "fits" developers, so that they can put FITS_FILENAME in their .env.development.local file to override the app's location of fits.

Developers who had their app working correctly with the "fits.sh" default do not need to put in the new environment variable, and should notice no change in functionality.

Also adds note in README about the FITS_FILENAME variable.

Janell-Huyck commented 8 months ago

Issue fixed locally by modifying .zshrc file, adding alias fits.sh='fits'