fix: update Makefile and paths for tracker_prompts directory

This commit is contained in:
James 2026-02-09 02:06:39 -05:00
parent 96fec23e22
commit c389fac78a
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ deploy: check-db all $(BINDIR)/decrypt $(BINDIR)/fips-check
rsync -avz --delete portal/templates/ $(STAGING_HOST):$(DEPLOY_DIR)/templates/
rsync -avz portal/static/ $(STAGING_HOST):$(DEPLOY_DIR)/static/
rsync -avz portal/lang/ $(STAGING_HOST):$(DEPLOY_DIR)/lang/
rsync -avz api/prompts/ $(STAGING_HOST):$(DEPLOY_DIR)/prompts/
rsync -avz api/tracker_prompts/ $(STAGING_HOST):$(DEPLOY_DIR)/tracker_prompts/
ssh $(STAGING_HOST) "$(DEPLOY_DIR)/start.sh"
@echo ""
ssh $(STAGING_HOST) "$(DEPLOY_DIR)/status.sh"

View File

@ -53,9 +53,9 @@ func loadLLMConfig() {
// Initialize trackers directory
exe, _ := os.Executable()
promptsDir := filepath.Join(filepath.Dir(exe), "..", "api", "trackers")
promptsDir := filepath.Join(filepath.Dir(exe), "..", "api", "tracker_prompts")
if _, err := os.Stat(promptsDir); os.IsNotExist(err) {
promptsDir = "trackers" // Dev fallback
promptsDir = "tracker_prompts" // Dev fallback
}
lib.InitPrompts(promptsDir)
log.Printf("Prompts directory set to: %s", lib.TrackerPromptsDir())