From 1b116ecf856264c310e90a6e147846cd45d4bdfd Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 2 Dec 2015 09:59:30 +0000 Subject: [PATCH] Added aws run script to use full path to application for codedeploy --- appspec.yml | 2 +- scripts/aws_run_app.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 scripts/aws_run_app.sh diff --git a/appspec.yml b/appspec.yml index 5a43ac95f..0ea8d981b 100644 --- a/appspec.yml +++ b/appspec.yml @@ -9,6 +9,6 @@ hooks: timeout: 300 runas: root ApplicationStart: - - location: scripts/run_app.sh + - location: scripts/aws_run_app.sh timeout: 300 runas: root diff --git a/scripts/aws_run_app.sh b/scripts/aws_run_app.sh new file mode 100644 index 000000000..eaa3740ba --- /dev/null +++ b/scripts/aws_run_app.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python /home/ubuntu/notifications-admin/app.py runserver