mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
- Add railway.json pointing to Dockerfile (explicit build config) - Add agentUrl to GfEnvironment interface - Dev: agentUrl = '/agent' (proxied through Angular dev server) - Prod: agentUrl = 'https://ghostfolio-agent-production.up.railway.app' - Inject GF_ENVIRONMENT into GfAiChatComponent constructor Co-authored-by: Cursor <cursoragent@cursor.com>pull/6453/head
5 changed files with 29 additions and 4 deletions
@ -1,6 +1,7 @@ |
|||
import type { GfEnvironment } from '@ghostfolio/ui/environment'; |
|||
|
|||
export const environment: GfEnvironment = { |
|||
agentUrl: 'https://ghostfolio-agent-production.up.railway.app', |
|||
lastPublish: '{BUILD_TIMESTAMP}', |
|||
production: true |
|||
}; |
|||
|
|||
@ -1,4 +1,5 @@ |
|||
export interface GfEnvironment { |
|||
agentUrl?: string; |
|||
lastPublish: string | null; |
|||
production: boolean; |
|||
} |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
{ |
|||
"$schema": "https://railway.com/railway.schema.json", |
|||
"build": { |
|||
"builder": "DOCKERFILE", |
|||
"dockerfilePath": "Dockerfile" |
|||
}, |
|||
"deploy": { |
|||
"startCommand": "/ghostfolio/entrypoint.sh", |
|||
"healthcheckPath": "/api/v1/health", |
|||
"healthcheckTimeout": 300, |
|||
"restartPolicyType": "ON_FAILURE", |
|||
"restartPolicyMaxRetries": 5 |
|||
} |
|||
} |
|||
Loading…
Reference in new issue