Skip to content

Commit

Permalink
Merge pull request #4542 from GSA-TTS/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm authored Dec 13, 2024
2 parents f6b5500 + 4016868 commit 67e7ff6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
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

0 comments on commit 67e7ff6

Please sign in to comment.