Create new stable environment (#367)

update documentation for environments and setup new stable environment
This commit is contained in:
Logan McDonald 2023-01-17 13:54:30 -08:00 committed by GitHub
parent 80f8748f39
commit 6a54bf1ff4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 88 additions and 137 deletions

View file

@ -5,4 +5,5 @@ docker compose run node npx gulp compile;
docker compose run node npx gulp copyAssets;
# Collect assets
docker compose build
docker compose run app python manage.py collectstatic --noinput

View file

@ -3,9 +3,9 @@
# 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
# Deploy to sandbox
cf target -o cisa-getgov-prototyping -s $1
cf push getgov-$1 -f ../ops/manifests/manifest-$1.yaml
# migrations need to be run manually. Developers can use this command
#cf run-task getgov-unstable --command 'python manage.py migrate' --name migrate
#cf run-task getgov-SANDBOXNAME --command 'python manage.py migrate' --name migrate

View file

@ -5,7 +5,7 @@ if [ ! $(command -v gh) ] || [ ! $(command -v jq) ] || [ ! $(command -v cf) ]; t
fi
if [ -z "$1" ]; then
echo 'Please specify a space to target (i.e. unstable, staging)' >&2
echo 'Please specify a space to target (i.e. lmm, stable)' >&2
exit 1
fi