Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-12-13 | MAIN --> PROD | DEV (4016868) --> STAGING #4542

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ source tools/api_standup.sh
source tools/run_collectstatic.sh
source tools/seed_cog_baseline.sh
source tools/materialized_views.sh
source tools/create_staffusers.sh

#####
# SETUP THE CGOV ENVIRONMENT
Expand Down Expand Up @@ -55,6 +56,12 @@ if [[ "$CF_INSTANCE_INDEX" == 0 ]]; then

# materialized_views
# gonogo "materialized_views"

#####
# CREATE STAFF USERS
# Prepares staff users for Django admin
create_staffusers
gonogo "create_staffusers"
fi

# Make psql usable by scripts, for debugging, etc.
Expand Down
4 changes: 3 additions & 1 deletion backend/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ source tools/api_teardown.sh
source tools/migrate_app_tables.sh
source tools/api_standup.sh
source tools/seed_cog_baseline.sh
source tools/create_staffusers.sh

#####
# SETUP THE LOCAL ENVIRONMENT
Expand Down Expand Up @@ -52,7 +53,8 @@ gonogo "seed_cog_baseline"
#####
# CREATE STAFF USERS
# Prepares staff users for Django admin
python manage.py create_staffusers
create_staffusers
gonogo "create_staffusers"

#####
# LAUNCH THE APP
Expand Down
10 changes: 10 additions & 0 deletions backend/tools/create_staffusers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#####
# CREATE STAFF USERS
# Prepares staff users for Django admin
source tools/util_startup.sh

function create_staffusers {
startup_log "CREATE_STAFFUSERS" "BEGIN"
python manage.py create_staffusers
startup_log "CREATE_STAFFUSERS" "END"
}
10 changes: 10 additions & 0 deletions terraform/sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ This assumes you have a `sandbox.tfvars` and `backend.tfvars` in `terraform/shar
Next, run `./plan.sh` script. You should see it creating ~20 resources in a clean environment, or updating a few.
Finally, run `./apply.sh` script and wait.

---

**NOTE** - If you would like to monitor the deploy logs as `./apply.sh` is running, start up a new terminal and run:
```
cf t -s sandbox
cf logs gsa-fac
```

---

# What is missing/omitted from Sandbox
The following resources were intentionally left out from the sandbox environment. Part of that is the lack of necessity for such things, and an attempt to have a more lightweight environment, that only runs the bare minimum to bring up the system.
- Logshipper Module
Expand Down
Loading