From 411dcea530b53730d695b8d194ed079a3ed00e17 Mon Sep 17 00:00:00 2001 From: igorkorenfeld Date: Thu, 15 Sep 2022 15:16:37 -0400 Subject: [PATCH] Create a deploy script --- ops/scripts/deploy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ops/scripts/deploy.sh diff --git a/ops/scripts/deploy.sh b/ops/scripts/deploy.sh new file mode 100755 index 000000000..7ff641752 --- /dev/null +++ b/ops/scripts/deploy.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Compile and collect static assets +../ops/scripts/build.sh + +# Deploy to unstable +cf target -o cisa-getgov-prototyping -s unstable +cf push getgov-unstable -f ../ops/manifests/manifest-unstable.yaml + +cf run-task getgov-unstable --command 'python manage.py migrate' --name migrate