diff --git a/appspec.yml b/appspec.yml new file mode 100644 index 000000000..8ccf3f3e1 --- /dev/null +++ b/appspec.yml @@ -0,0 +1,14 @@ +version: 0.0 +os: linux +files: + - source: / + destination: /home/ubuntu/ +hooks: + AfterInstall: + - location: scripts/install_dependencies.sh + timeout: 300 + runas: root + ApplicationStart: + - location: scripts/run_app.sh + timeout: 300 + runas: root diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh new file mode 100644 index 000000000..f9783ee8b --- /dev/null +++ b/scripts/install_dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +pip install -r /home/ubuntu/notifications-admin/requirements.txt