fix: update Makefile and paths for tracker_prompts directory
This commit is contained in:
parent
96fec23e22
commit
c389fac78a
2
Makefile
2
Makefile
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue