diff --git a/appspec.yml b/appspec.yml index f5ac38fd8..c6a713089 100644 --- a/appspec.yml +++ b/appspec.yml @@ -13,11 +13,7 @@ hooks: location: scripts/aws_change_ownership.sh runas: root timeout: 300 - - - location: scripts/aws_db_updates.sh - runas: ubuntu - timeout: 300 - ApplicationStart: + ApplicationStart: - location: scripts/aws_start_app.sh runas: root diff --git a/scripts/aws_db_updates.sh b/scripts/aws_db_updates.sh deleted file mode 100755 index e45ecc843..000000000 --- a/scripts/aws_db_updates.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -python3 db.py db upgrade diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index a74b4ccea..e36fae522 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -4,3 +4,4 @@ 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