generated from westfarn/web_django_template
Stand up Print Forge as a 3D-printed toy shop with color variants and printer photography.
Replaces the client_site template branding, adds shop/shipping, and points beta CI at master for easy deploy. Closes #1
This commit is contained in:
@@ -82,6 +82,41 @@ if _true "${FEATURE_SOCIAL_AI:-}"; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if _true "${FEATURE_SHOP:-}"; then
|
||||
if ! _true "${FEATURE_EMAIL_SMS:-}"; then
|
||||
echo "FEATURE_SHOP requires FEATURE_EMAIL_SMS" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! _true "${FEATURE_PAYMENTS:-}"; then
|
||||
echo "FEATURE_SHOP requires FEATURE_PAYMENTS" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if _true "${FEATURE_POS_SYNC:-}"; then
|
||||
if ! _true "${FEATURE_SHOP:-}"; then
|
||||
echo "FEATURE_POS_SYNC requires FEATURE_SHOP" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ "$DJANGO_ENV" == "prod" || "$DJANGO_ENV" == "beta" ]]; then
|
||||
required_vars+=(POS_WEBHOOK_SECRET)
|
||||
fi
|
||||
fi
|
||||
if _true "${FEATURE_EVENTS:-}"; then
|
||||
if ! _true "${FEATURE_EMAIL_SMS:-}"; then
|
||||
echo "FEATURE_EVENTS requires FEATURE_EMAIL_SMS" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! _true "${FEATURE_PAYMENTS:-}"; then
|
||||
echo "FEATURE_EVENTS requires FEATURE_PAYMENTS" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if _true "${FEATURE_SHIPPING:-}"; then
|
||||
if ! _true "${FEATURE_SHOP:-}"; then
|
||||
echo "FEATURE_SHIPPING requires FEATURE_SHOP" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
missing=()
|
||||
for var in "${required_vars[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user