From 58d0e7f16066402099a722c2f1874a124a2d2688 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 16 May 2025 10:47:26 +0200 Subject: [PATCH] workaround --- backend/src/typeorm/connection.ts | 3 ++- deployment/bare_metal/start.sh | 6 +++--- dht-node/src/typeorm/connection.ts | 3 ++- federation/src/typeorm/connection.ts | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/backend/src/typeorm/connection.ts b/backend/src/typeorm/connection.ts index 0bb1b76bf..c2e2e5558 100644 --- a/backend/src/typeorm/connection.ts +++ b/backend/src/typeorm/connection.ts @@ -38,7 +38,8 @@ export class Connection { synchronize: false, logging: true, logger: new FileLogger('all', { - logPath: CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, + // workaround to let previous path working, because with esbuild the script root path has changed + logPath: '../' + CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, }), extra: { charset: 'utf8mb4_unicode_ci', diff --git a/deployment/bare_metal/start.sh b/deployment/bare_metal/start.sh index 878cb470f..c8985bca6 100755 --- a/deployment/bare_metal/start.sh +++ b/deployment/bare_metal/start.sh @@ -307,12 +307,12 @@ else fi # start after building all to use up less ressources -pm2 start --name gradido-backend "yarn --cwd $PROJECT_ROOT/backend start" -l $GRADIDO_LOG_PATH/pm2.backend.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' +pm2 start --name gradido-backend "turbo backend#start --env-mode=loose" -l $GRADIDO_LOG_PATH/pm2.backend.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' #pm2 start --name gradido-frontend "yarn --cwd $PROJECT_ROOT/frontend start" -l $GRADIDO_LOG_PATH/pm2.frontend.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' #pm2 start --name gradido-admin "yarn --cwd $PROJECT_ROOT/admin start" -l $GRADIDO_LOG_PATH/pm2.admin.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' pm2 save if [ ! -z $FEDERATION_DHT_TOPIC ]; then - pm2 start --name gradido-dht-node "yarn --cwd $PROJECT_ROOT/dht-node start" -l $GRADIDO_LOG_PATH/pm2.dht-node.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' + pm2 start --name gradido-dht-node "turbo dht-node#start --env-mode=loose" -l $GRADIDO_LOG_PATH/pm2.dht-node.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' pm2 save else log_step "=====================================================================" @@ -336,7 +336,7 @@ do log_step "====================================================" log_step " start $MODULENAME listening on port=$FEDERATION_PORT" log_step "====================================================" - pm2 start --name $MODULENAME "yarn --cwd $PROJECT_ROOT/federation start" -l $GRADIDO_LOG_PATH/pm2.$MODULENAME.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' + pm2 start --name $MODULENAME "turbo federation#start --env-mode=loose" -l $GRADIDO_LOG_PATH/pm2.$MODULENAME.$TODAY.log --log-date-format 'YYYY-MM-DD HH:mm:ss.SSS' pm2 save done diff --git a/dht-node/src/typeorm/connection.ts b/dht-node/src/typeorm/connection.ts index 9df511455..14c6195f9 100644 --- a/dht-node/src/typeorm/connection.ts +++ b/dht-node/src/typeorm/connection.ts @@ -18,7 +18,8 @@ export const connection = async (): Promise => { synchronize: false, logging: true, logger: new FileLogger('all', { - logPath: CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, + // workaround to let previous path working, because with esbuild the script root path has changed + logPath: '../' + CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, }), extra: { charset: 'utf8mb4_unicode_ci', diff --git a/federation/src/typeorm/connection.ts b/federation/src/typeorm/connection.ts index f76628767..827e8d430 100644 --- a/federation/src/typeorm/connection.ts +++ b/federation/src/typeorm/connection.ts @@ -18,7 +18,8 @@ const connection = async (): Promise => { synchronize: false, logging: true, logger: new FileLogger('all', { - logPath: CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, + // workaround to let previous path working, because with esbuild the script root path has changed + logPath: '../' + CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, }), extra: { charset: 'utf8mb4_unicode_ci',