mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
fix(dx): suppress AZURE_OPENAI_API_KEY warning, honest db:push reporting
- docker-compose: add empty default for AZURE_OPENAI_API_KEY to suppress Docker Compose "variable is not set" warning - setup-databases.sh: detect when pnpm filter matches no packages and report "Skipped" instead of false "Schema pushed" success Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7df515434e
commit
5647b2f8ae
2 changed files with 7 additions and 2 deletions
|
|
@ -55,7 +55,12 @@ push_schema() {
|
|||
local filter=$1
|
||||
local name=$2
|
||||
echo -e "${YELLOW}Pushing schema for ${name}...${NC}"
|
||||
if pnpm --filter "$filter" db:push --force 2>/dev/null; then
|
||||
local output
|
||||
output=$(pnpm --filter "$filter" db:push --force 2>&1)
|
||||
local exit_code=$?
|
||||
if echo "$output" | grep -q "No projects matched the filters\|None of the selected packages has"; then
|
||||
echo -e " ${YELLOW}⊘ Skipped (no db:push script for ${filter})${NC}"
|
||||
elif [ $exit_code -eq 0 ]; then
|
||||
echo -e " ${GREEN}✓ Schema pushed${NC}"
|
||||
else
|
||||
echo -e " ${RED}✗ Failed (may not have db:push script)${NC}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue