Skip to content

Commit 111a895

Browse files
committed
fix db url
1 parent d30d645 commit 111a895

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

live-demo/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const admin = new AdminForth({
4949
dataSources: [
5050
{
5151
id: 'maindb',
52-
url: `sqlite://${process.env.DATABASE_FILE}`
52+
url: `sqlite://${process.env.DATABASE_FILE?.replace('file:', '')}`,
5353
},
5454
],
5555
resources: [

live-demo/deploy/compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
- OPENAI_API_KEY=${VAULT_OPENAI_API_KEY}
1111
- AWS_ACCESS_KEY_ID=${VAULT_AWS_ACCESS_KEY_ID}
1212
- AWS_SECRET_ACCESS_KEY=${VAULT_AWS_SECRET_ACCESS_KEY}
13+
- DATABASE_FILE_URL=file:./db/test.sqlite
1314
volumes:
1415
- af-db:/code/db/
1516

0 commit comments

Comments
 (0)