Skip to content

Commit

Permalink
Merge branch 'developer'
Browse files Browse the repository at this point in the history
-- reseting as per fixes to diff b/w master and developer
  • Loading branch information
garywong-bc-bot committed Apr 30, 2018
2 parents 805c29d + c4d1b1f commit 4fedfc1
Show file tree
Hide file tree
Showing 167 changed files with 138,292 additions and 32,030 deletions.
59 changes: 59 additions & 0 deletions .envrc
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
.Trashes
ehthumbs.db
Thumbs.db
*.md5


##################
Expand Down Expand Up @@ -114,6 +115,7 @@ gwells.pyproj*
*.sublime-project
*.sublime-workspace
.vscode
*.ipynb

#functional-tests
functional-tests/.gradle/
Expand All @@ -131,13 +133,12 @@ x.sh
#virtual env
/deactivate
.venv
.envrc
.direnv

# Frontend files
frontend/node_modules/
frontend/webpack-stats.json
registries/static/registries/bundles/
gwells/static/vue

sonar-runner/.gradle
*.patch
Expand Down
Loading

0 comments on commit 4fedfc1

Please sign in to comment.