scripts/bootstrap/onboard-workspace.sh
Metadata
- Purpose: Automation script used in local development, CI, or deployment flow.
- Domain:
scripts - Language:
bash - Bytes: 3648
- Lines: 156
- Content hash (short):
fb9361c0 - Source (start): scripts/bootstrap/onboard-workspace.sh:1
- Source (end): scripts/bootstrap/onboard-workspace.sh:156
Indexed Symbols
No indexed functions/methods detected in this file.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
#!/usr/bin/env bash
set -euo pipefail
if [[ -z "${DATABASE_URL:-}" ]]; then
echo "DATABASE_URL is required"
exit 1
fi
if [[ -z "${WORKSPACE_NAME:-}" || -z "${WORKSPACE_SLUG:-}" ]]; then
echo "WORKSPACE_NAME and WORKSPACE_SLUG are required"
exit 1
fi
if [[ -z "${CLIENT_NAME:-}" ]]; then
echo "CLIENT_NAME is required"
exit 1
fi
if [[ -z "${CONTACT_FIRST_NAME:-}" || -z "${CONTACT_LAST_NAME:-}" || -z "${CONTACT_EMAIL:-}" ]]; then
echo "CONTACT_FIRST_NAME, CONTACT_LAST_NAME, and CONTACT_EMAIL are required"
exit 1
fi
if [[ -z "${ASSET_HOSTNAME:-}" || -z "${ASSET_OS:-}" ]]; then
echo "ASSET_HOSTNAME and ASSET_OS are required"