mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-02 13:53:47 +00:00
Muluhabt ERP modules
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
GT06_TCP_PORT=5023
|
||||
GT06_TCP_HOST=0.0.0.0
|
||||
|
||||
# Shared freight database (same DB as @edr/freight-api). This app only writes
|
||||
# freight.gps_devices / freight.gps_positions and NEVER runs migrations.
|
||||
# The single, schema-separated platform database (same DB as @edr/freight-api).
|
||||
# This app only writes freight.gps_devices / freight.gps_positions — both
|
||||
# schema-qualified on the entities — and NEVER runs migrations.
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5433
|
||||
DB_NAME=edr_freight
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=postgres
|
||||
DB_PORT=5432
|
||||
DB_NAME=edr_database
|
||||
DB_USER=edr
|
||||
DB_PASSWORD=edr_secret
|
||||
# TYPEORM_LOGGING=true # uncomment for SQL logging
|
||||
|
||||
@@ -15,10 +15,11 @@ export default registerAs("database", (): TypeOrmModuleOptions => {
|
||||
return {
|
||||
type: "postgres",
|
||||
host: process.env.DB_HOST ?? "localhost",
|
||||
port: parseInt(process.env.DB_PORT ?? "5433", 10),
|
||||
username: process.env.DB_USER ?? "postgres",
|
||||
password: process.env.DB_PASSWORD ?? "",
|
||||
database: process.env.DB_NAME ?? "edr_freight",
|
||||
port: parseInt(process.env.DB_PORT ?? "5432", 10),
|
||||
username: process.env.DB_USER ?? "edr",
|
||||
password: process.env.DB_PASSWORD ?? "edr_secret",
|
||||
// Same single, schema-separated platform database as every other app.
|
||||
database: process.env.DB_NAME ?? "edr_database",
|
||||
entities: [GpsDevice, GpsPosition],
|
||||
migrations: [],
|
||||
migrationsRun: false,
|
||||
|
||||
Reference in New Issue
Block a user