mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-29 07:43:32 +02:00
Create new stable
environment (#367)
update documentation for environments and setup new stable environment
This commit is contained in:
parent
80f8748f39
commit
6a54bf1ff4
16 changed files with 88 additions and 137 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue