Skip to content

Commit 8bb3693

Browse files
authored
Merge pull request #161 from badaitech/fix_readme
fix readme db url example and env file path for migration
2 parents 3491c31 + 799d3c4 commit 8bb3693

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/chaingraph-backend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TRPC_SERVER_HOST=localhost
55
TRPC_SERVER_PORT=3001
66

77
# Database Configuration
8-
DATABASE_URL=postgres://postgres@postgres@127.0.0.1:5431/postgres?sslmode=disable
8+
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5431/postgres?sslmode=disable
99

1010
# Authentication Configuration
1111
AUTH_ENABLED=true

packages/chaingraph-trpc/server/drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as dotenv from 'dotenv'
1313
import { defineConfig } from 'drizzle-kit'
1414

1515
// Check if .env file exists before trying to load it
16-
const envPath = path.resolve(__dirname, '../../.env')
16+
const envPath = path.resolve(__dirname, '../../../.env')
1717
const envExists = fs.existsSync(envPath)
1818

1919
if (envExists) {

0 commit comments

Comments
 (0)