24 lines
469 B
Bash
24 lines
469 B
Bash
export NGINX_CONFIG_VERSION=v1
|
|
export APP_ENTRYPOINT_VERSION=v1
|
|
|
|
secrets() {
|
|
docker context use default > /dev/null 2>&1
|
|
|
|
DJANGO_SECRET_KEY=$(openssl rand -base64 45)
|
|
|
|
echo "DJANGO_SECRET_KEY = $DJANGO_SECRET_KEY"
|
|
echo ""
|
|
|
|
abra app secret insert "$APP_NAME" django_secret_key v1 "$DJANGO_SECRET_KEY"
|
|
}
|
|
|
|
migrate(){
|
|
# run against the "api" service
|
|
python manage.py migrate
|
|
}
|
|
|
|
admin() {
|
|
# run against the "api" service
|
|
python manage.py createsuperuser
|
|
}
|