From 5607a44598bc99df01ddfd61c751705bb1b01672 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Wed, 18 May 2011 08:19:34 -0700 Subject: [PATCH] utility script for deploying canary on heroku --- test/canary_django/deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/canary_django/deploy.sh diff --git a/test/canary_django/deploy.sh b/test/canary_django/deploy.sh new file mode 100755 index 0000000..4798446 --- /dev/null +++ b/test/canary_django/deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash +[[ $GIT_PASSWORD = "" ]] && { echo "usage: GIT_PASSWORD=xxx ./push.sh"; exit 1; } +heroku destroy --app canary-django --confirm canary-django + +rm -rf .git +git init . +git add . && git commit -m 'Django skeleton' +heroku create canary-django --stack cedar +heroku config:add LANGUAGE_PACK_URL=https://nzoschke:${GIT_PASSWORD}@github.com/heroku/language-pack-python.git --app canary-django +git push heroku master +rm -rf .git + +curl --head http://canary-django.herokuapp.com/