Revert "Update master with all the staging changes for aws deployments."

This reverts commit bfb59811f4.
This commit is contained in:
Rebecca Law
2016-04-18 14:07:54 +01:00
parent a96d2b5e4a
commit bcb031259c
6 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
---
files:
-
destination: /home/notify-app/notifications-api
destination: /home/ubuntu/notifications-api
source: /
hooks:
AfterInstall:

View File

@@ -3,7 +3,7 @@ from app import notify_celery, create_app
from credstash import getAllSecrets
import os
default_env_file = '/home/notify-app/environment'
default_env_file = '/home/ubuntu/environment'
environment = 'live'
if os.path.isfile(default_env_file):

2
db.py
View File

@@ -4,7 +4,7 @@ from app import create_app, db
from credstash import getAllSecrets
import os
default_env_file = '/home/notify-app/environment'
default_env_file = '/home/ubuntu/environment'
environment = 'live'
if os.path.isfile(default_env_file):

View File

@@ -1,5 +1,5 @@
#!/bin/bash
echo "Chown application to be owned by notify-api"
cd /home/notify-app/;
chown -R notify-app:govuk-notify-applications notifications-api
echo "Chown application to be owned by ubuntu"
cd /home/ubuntu/;
chown -R ubuntu:ubuntu notifications-api

View File

@@ -1,4 +1,4 @@
echo "Install dependencies"
cd /home/notify-app/notifications-api;
pip3 install -r /home/notify-app/notifications-api/requirements.txt
cd /home/ubuntu/notifications-api;
pip3 install -r /home/ubuntu/notifications-api/requirements.txt
python3 db.py db upgrade

View File

@@ -4,7 +4,7 @@ from app import create_app
from credstash import getAllSecrets
default_env_file = '/home/notify-app/environment'
default_env_file = '/home/ubuntu/environment'
environment = 'live'
if os.path.isfile(default_env_file):