From a3d47d74ccf87950fb993fbce439aa84a8427b9d Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 19 May 2015 17:37:48 +0200 Subject: [PATCH] Use dedicated script to pre deploy actions --- application-template.json | 2 +- scripts/pre_deploy.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 scripts/pre_deploy.sh diff --git a/application-template.json b/application-template.json index 5008090..0b95b38 100644 --- a/application-template.json +++ b/application-template.json @@ -161,7 +161,7 @@ "execNewPod": { "containerName": "django", "command": [ - "./manage.py migrate" + "./scripts/pre_deploy.sh" ] } } diff --git a/scripts/pre_deploy.sh b/scripts/pre_deploy.sh new file mode 100755 index 0000000..3caf753 --- /dev/null +++ b/scripts/pre_deploy.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# enable SCL +source .bashrc + +./manage.py migrate