From 369de6b62e3f0150dfdd8ff356c61e5abd92fd83 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Mon, 30 Nov 2015 15:44:16 +0000 Subject: [PATCH] Added files to support AWS Code deploy --- appspec.yml | 14 ++++++++++++++ scripts/install_dependencies.sh | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 appspec.yml create mode 100644 scripts/install_dependencies.sh 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