Create a deploy script

This commit is contained in:
igorkorenfeld 2022-09-15 15:16:37 -04:00
parent 2f09db0ec5
commit 411dcea530
No known key found for this signature in database
GPG key ID: 826947A4B867F659

10
ops/scripts/deploy.sh Executable file
View file

@ -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