mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 12:08:25 -04:00
Merge pull request #460 from alphagov/aws-fixup
Update deployment files for aws
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
files:
|
files:
|
||||||
-
|
-
|
||||||
destination: /home/ubuntu/notifications-admin
|
destination: /home/notify-app/notifications-admin
|
||||||
source: /
|
source: /
|
||||||
hooks:
|
hooks:
|
||||||
AfterInstall:
|
AfterInstall:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Chown application to be owned by ubuntu"
|
echo "Chown application to be owned by notify"
|
||||||
cd /home/ubuntu/;
|
cd /home/notify-app/;
|
||||||
chown -R ubuntu:ubuntu notifications-admin
|
chown -R notify-app:govuk-notify-applications notifications-admin
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Install dependencies"
|
echo "Install dependencies"
|
||||||
cd /home/ubuntu/notifications-admin;
|
cd /home/notify-app/notifications-admin;
|
||||||
pip3 install -r /home/ubuntu/notifications-admin/requirements.txt
|
pip3 install -r /home/notify-app/notifications-admin/requirements.txt
|
||||||
|
|||||||
2
wsgi.py
2
wsgi.py
@@ -1,7 +1,7 @@
|
|||||||
from credstash import getAllSecrets
|
from credstash import getAllSecrets
|
||||||
import os
|
import os
|
||||||
|
|
||||||
default_env_file = '/home/ubuntu/environment'
|
default_env_file = '/home/notify-app/environment'
|
||||||
environment = 'live'
|
environment = 'live'
|
||||||
|
|
||||||
if os.path.isfile(default_env_file):
|
if os.path.isfile(default_env_file):
|
||||||
|
|||||||
Reference in New Issue
Block a user