-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for the override of SPECIFY_THICK_CLIENT from environment #5455
base: production
Are you sure you want to change the base?
Changes from all commits
6dbe76c
0004c44
bc8fc56
dd18c7a
f2f30fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- This file is to test that the sp7_only config files are beind used in the static files api --> | ||
<!-- Root element representing the main container --> | ||
<test_sp7> | ||
<!-- Comment explaining the purpose of this section --> | ||
<section1> | ||
<!-- Placeholder for a title --> | ||
<title>SP7 Test</title> | ||
|
||
<!-- Placeholder for a description --> | ||
<description>SP7 Test</description> | ||
|
||
<!-- Placeholder for a date --> | ||
<date>YYYY-MM-DD</date> | ||
</section1> | ||
</test_sp7> |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,8 +1,9 @@ | ||||||||
import os | ||||||||
|
||||||||
# Specify 7 requires the files from a Specify 6 install. | ||||||||
# This setting should point to a directory containing an installation | ||||||||
# of Specify 6 of the same version as the Specify database. | ||||||||
THICK_CLIENT_LOCATION = '/opt/Specify' | ||||||||
THICK_CLIENT_LOCATION = os.environ.get('THICK_CLIENT_LOCATION', '/opt/Specify') | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This allows local installations to set a THICK_CLIENT_LOCATION environment variable and use that instead of modifying this variable directly. Do we want to add note of this to the installation instructions? Lines 491 to 493 in 18f5c15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And for Dockerized instances, do we want to provide documentation for how this environment variable can be used? For the users who wish to go in depth for customizing the setup of their instance, there's a LOT of moving parts. They might not even know what's possible/not-possible, and I could see how easy it might be to get stuck. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||
|
||||||||
# Set the database name to the MySQL database you | ||||||||
# want to access which must be a Specify database already | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this before merging, right?