11a38a4526
This adds an initial configuration for staging. Note that we are doing this ahead of having the full infrastructure in all 3 DCs. So this this will result in some cross-DC writes for now (e.g. we have a single cache in IAD). We'll correct this as the infrastructure becomes available. We'll also run jobs on every app server, until we split them out to separate instances.
9 lines
233 B
Bash
Executable File
9 lines
233 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# If running the rails server then create or migrate existing database
|
|
if [ "${1}" == "./bin/thrust" ] && [ "${2}" == "./bin/rails" ] && [ "${3}" == "server" ]; then
|
|
MIGRATE=1 ./bin/rails db:prepare
|
|
fi
|
|
|
|
exec "${@}"
|