-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging in all changes for Registries Search - garywong-bc/master
Merging in all changes for Registries Search.
- Loading branch information
Showing
167 changed files
with
138,292 additions
and
32,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# If you're using https://direnv.net/, this file assists in ensuring that your environment is set up | ||
# correctly. | ||
|
||
# Ensure you're running the correct virtual environment | ||
layout python3 | ||
|
||
# Set all required environment variables. | ||
export DATABASE_SERVICE_NAME=localhost | ||
export LOCALHOST_SERVICE_HOST=localhost | ||
export LOCALHOST_SERVICE_PORT=5432 | ||
export DATABASE_ENGINE=postgresql | ||
export DATABASE_NAME=gwells | ||
export DATABASE_USER=gwells | ||
export DATABASE_PASSWORD=gwells | ||
export DATABASE_SCHEMA=public | ||
export DJANGO_SECRET_KEY=blah | ||
export DJANGO_DEBUG=True | ||
export APP_CONTEXT_ROOT=gwells | ||
export ENABLE_GOOGLE_ANALYTICS=False | ||
export ENABLE_DATA_ENTRY=True | ||
export AXIOS_BASEURL=http://127.0.0.1:8000/ | ||
export LEGACY_DATABASE_USER=wells | ||
export LEGACY_DATABASE_NAME=wells | ||
export LEGACY_SCHEMA=wells | ||
export SESSION_COOKIE_SECURE=False | ||
export CSRF_COOKIE_SECURE=False | ||
export ENABLE_ADDITIONAL_DOCUMENTS=True | ||
export DJANGO_ADMIN_URL=admin | ||
export REQUIRE_ENV_VARIABLES=True | ||
export S3_HOST=s3.ca-central-1.amazonaws.com | ||
export S3_ROOT_BUCKET=gwells-docs | ||
|
||
|
||
# Check if requirements.txt has changed | ||
echo "Checking if requirements has changed..." | ||
read current_md5 _ <<< $(cat requirements.txt | md5 | awk '{print $1}') | ||
read prev_md5 _ <<< $(cat requirements.md5) | ||
if [ "$current_md5" != "$prev_md5" ] | ||
then | ||
echo "requirements.txt seems to have changed, running pip install." | ||
pip install --upgrade -r requirements.txt | ||
echo "Storing md5 for current requirements.txt..." | ||
echo "$current_md5" > requirements.md5 | ||
else | ||
echo "requiremens.txt doesn't seem to have changed." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.