From ca36b56d4c02cc9278b528ed0f26f491a35a9967 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Tue, 19 Jan 2016 21:26:45 +0000 Subject: [PATCH] Run start/stop as ubuntu --- appspec.yml | 4 ++-- scripts/aws_install_dependencies.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/appspec.yml b/appspec.yml index 004ca4f24..c6a713089 100644 --- a/appspec.yml +++ b/appspec.yml @@ -16,12 +16,12 @@ hooks: ApplicationStart: - location: scripts/aws_start_app.sh - runas: ubuntu + runas: root timeout: 300 ApplicationStop: - location: scripts/aws_stop_app.sh - runas: ubuntu + runas: root timeout: 300 os: linux version: 0.0 diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index e36fae522..5816bcf98 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -2,6 +2,5 @@ echo "Install dependencies" cd /home/ubuntu/notifications-admin; -export FLASK_CONFIG=/home/ubuntu/config.cfg pip3 install -r /home/ubuntu/notifications-admin/requirements.txt python3 db.py db upgrade