Fix Makefile to create speech.env automatically
- Add step in sync target to copy sample.env to speech.env if missing - Ensures Makefile works from scratch without manual intervention - Tested full deployment cycle: deploy -> voices -> test - Successfully creates ~/uncloseai-speech directory - Downloads voices with absolute paths - Generates working TTS audio Raccoon mission: Makefile is now fully self-sufficient! 🦝 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
874a7f170c
commit
0ff5f0f09a
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -39,6 +39,8 @@ sync:
|
|||
rsync -avz --exclude '.git' --exclude '__pycache__' --exclude '*.pyc' \
|
||||
--exclude 'voices/*' --exclude 'config/voice_to_speaker.yaml' \
|
||||
./ $(REMOTE_USER)@$(REMOTE_HOST):$(REMOTE_PATH)/
|
||||
@echo "📝 Ensuring speech.env exists..."
|
||||
ssh $(REMOTE_USER)@$(REMOTE_HOST) "cd $(REMOTE_PATH) && [ -f speech.env ] || cp sample.env speech.env"
|
||||
|
||||
deploy: sync restart
|
||||
@echo "✅ Deployment complete!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue