Update config

Source the configuration from an environment file, this way it is similar to how the aws environment works
This commit is contained in:
Rebecca Law
2016-02-16 15:25:46 +00:00
parent 7ff5f6c45a
commit 08ba5de61b
13 changed files with 69 additions and 132 deletions

View File

@@ -34,4 +34,5 @@ createdb notification_api
createdb test_notification_api
# Upgrade databases
source environment.sh
python application.py db upgrade

View File

@@ -1,3 +1,6 @@
#!/bin/bash
python application.py runserver
set -e
source environment.sh
python3 application.py runserver

View File

@@ -9,6 +9,8 @@
set -o pipefail
source environment_test.sh
function display_result {
RESULT=$1
EXIT_STATUS=$2