mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 18:52:30 -05:00
Make sandbox deployments easier
This changeset makes a few adjustments to our sandbox environment config to make the sandbox deployments of the API much easier. It does this with the following: * Adds a few environment variable values to the sandbox.yml file to cover the ones that were not there previously * Adds a new script that can be run in place of memorizing any commands * Adds documentation on how to configure and run the sandbox environment Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
15
scripts/deploy_to_sandbox.sh
Executable file
15
scripts/deploy_to_sandbox.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create a requirements.txt file so dependencies are properly managed with the
|
||||
# deploy. This will overwrite any existing requirements.txt file to make sure
|
||||
# it is always up-to-date.
|
||||
poetry export --without-hashes --format=requirements.txt > requirements.txt
|
||||
|
||||
# Target the notify-sandbox space and deploy to cloud.gov with a cf push.
|
||||
# All environment variables are accounted for in the deploy-config/sandbox.yml
|
||||
# file, no need to add any of your own or source a .env* file.
|
||||
|
||||
# If ithis errors out because you need to be logged in, login first with this:
|
||||
# cf login -a api.fr.cloud.gov --sso
|
||||
cf target -o gsa-tts-benefits-studio -s notify-sandbox
|
||||
cf push -f manifest.yml --vars-file deploy-config/staging.yml --strategy rolling
|
||||
Reference in New Issue
Block a user