diff --git a/appspec.yml b/appspec.yml index 8d617ca3d..955aa13b2 100644 --- a/appspec.yml +++ b/appspec.yml @@ -1,7 +1,7 @@ --- files: - - destination: /home/ubuntu/notifications-api + destination: /home/notify-app/notifications-api source: / hooks: AfterInstall: diff --git a/aws_run_celery.py b/aws_run_celery.py index d5a58a09f..dfb7cf35d 100644 --- a/aws_run_celery.py +++ b/aws_run_celery.py @@ -3,7 +3,7 @@ from app import notify_celery, create_app from credstash import getAllSecrets import os -default_env_file = '/home/ubuntu/environment' +default_env_file = '/home/notify-app/environment' environment = 'live' if os.path.isfile(default_env_file): diff --git a/db.py b/db.py index d923c8c75..08a372fda 100644 --- a/db.py +++ b/db.py @@ -4,7 +4,7 @@ from app import create_app, db from credstash import getAllSecrets import os -default_env_file = '/home/ubuntu/environment' +default_env_file = '/home/notify-app/environment' environment = 'live' if os.path.isfile(default_env_file): diff --git a/scripts/aws_change_ownership.sh b/scripts/aws_change_ownership.sh index 411d380b1..00feb250c 100755 --- a/scripts/aws_change_ownership.sh +++ b/scripts/aws_change_ownership.sh @@ -1,5 +1,5 @@ #!/bin/bash -echo "Chown application to be owned by ubuntu" -cd /home/ubuntu/; -chown -R ubuntu:ubuntu notifications-api +echo "Chown application to be owned by notify-api" +cd /home/notify-app/; +chown -R notify-app:govuk-notify-applications notifications-api diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index c080296ee..8efee9d1b 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -1,4 +1,4 @@ echo "Install dependencies" -cd /home/ubuntu/notifications-api; -pip3 install -r /home/ubuntu/notifications-api/requirements.txt +cd /home/notify-app/notifications-api; +pip3 install -r /home/notify-app/notifications-api/requirements.txt python3 db.py db upgrade diff --git a/wsgi.py b/wsgi.py index 52e95994c..4f3308901 100644 --- a/wsgi.py +++ b/wsgi.py @@ -4,7 +4,7 @@ from app import create_app from credstash import getAllSecrets -default_env_file = '/home/ubuntu/environment' +default_env_file = '/home/notify-app/environment' environment = 'live' if os.path.isfile(default_env_file):