Skip to content

Commit 616a569

Browse files
authored
Merge pull request #21 from LKCY33/fix/env-loading-path
Valid fix for standalone installations. Merged. Thank you for the contribution!
2 parents 1610739 + 51aa843 commit 616a569

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EvoMap Environment Configuration
2+
3+
# Memory and Evolution directories
4+
MEMORY_DIR=./memory
5+
EVOLUTION_DIR=./memory/evolution
6+
MEMORY_GRAPH_PATH=./memory/evolution/memory_graph.jsonl
7+
8+
# EvoMap Hub (optional)
9+
# HUB_URL=https://evomap.ai
10+
11+
# Agent configuration
12+
AGENT_NAME=main

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const evolve = require('./src/evolve');
22
const { solidify } = require('./src/gep/solidify');
33
const path = require('path');
44
// Hardened Env Loading: Ensure .env is loaded before anything else
5-
try { require('dotenv').config({ path: path.resolve(__dirname, '../../.env') }); } catch (e) { console.warn('[Evolver] Warning: dotenv not found or failed to load .env'); }
5+
try { require('dotenv').config({ path: path.resolve(__dirname, './.env') }); } catch (e) { console.warn('[Evolver] Warning: dotenv not found or failed to load .env'); }
66
const fs = require('fs');
77
const { spawn } = require('child_process');
88

0 commit comments

Comments
 (0)