Skip to content

Add environment validation and template files for start-all-phases.sh#10

Merged
cvsz merged 4 commits into
branchfrom
copilot/start-all-phase-again
Nov 9, 2025
Merged

Add environment validation and template files for start-all-phases.sh#10
cvsz merged 4 commits into
branchfrom
copilot/start-all-phase-again

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 9, 2025

The startup script failed silently or with unclear errors when .env files were missing, blocking first-time setup.

Changes

Environment Templates

  • Added server/.env.example and mini-app/.env.example with annotated configuration options
  • Templates include World ID credentials, RPC endpoints, and contract addresses

Configuration Validation

  • New --check flag validates setup without starting services
  • Enhanced check_environment() to provide actionable setup commands when .env files missing
  • Script now references .env.example files in error messages

Documentation

  • Updated README.md and QUICK_START.md with configuration validation workflow

Usage

# Validate configuration before starting
bash start-all-phases.sh --check

# Script shows exact commands when .env missing:
# cp server/.env.example server/.env
# cp mini-app/.env.example mini-app/.env

# Start all phases after configuration
bash start-all-phases.sh --all
Original prompt

start all phase


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI assigned Copilot and cvsz Nov 9, 2025
Copilot AI and others added 3 commits November 9, 2025 19:49
Co-authored-by: CVSz <4076926+CVSz@users.noreply.github.com>
Co-authored-by: CVSz <4076926+CVSz@users.noreply.github.com>
Co-authored-by: CVSz <4076926+CVSz@users.noreply.github.com>
@cvsz cvsz marked this pull request as ready for review November 9, 2025 19:55
@cvsz cvsz merged commit fb79a9e into branch Nov 9, 2025
2 checks passed
Copilot AI changed the title [WIP] Start all phase of the project Add environment validation and template files for start-all-phases.sh Nov 9, 2025
Copilot AI requested a review from cvsz November 9, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants