Skip to content

Commit

Permalink
add logs about files and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 17, 2024
1 parent a1bf173 commit dcf881d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ COPY --from=consumer-server-build /consumer-server/yarn.lock ./consumer-server/y
COPY --from=consumer-server-build /consumer-server/node_modules ./consumer-server/node_modules
COPY build-lods.ps1 .

RUN dir

CMD ["node", "./consumer-server/dist/index.js"]
3 changes: 2 additions & 1 deletion consumer-server/src/logic/boot-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fs from 'fs'

import { AppComponents } from '../types'

const projectRoot = path.resolve(__dirname, '..', '..')
const projectRoot = path.resolve(__dirname, '..', '..', '..')
const lodGeneratorProgram = path.join(projectRoot, 'DCL_PiXYZ.exe')
const sceneLodEntitiesManifestBuilder = path.join(projectRoot, 'scene-lod')

Expand All @@ -15,6 +15,7 @@ export function createBootValidatorComponent({ logs }: Pick<AppComponents, 'logs
async function start() {
logger.info('Validating boot...')

logger.info('Checking if PiXYZ is present at', { lodGeneratorProgram })
if (fs.existsSync(lodGeneratorProgram)) {
logger.info('PiXYZ program found')
} else {
Expand Down

0 comments on commit dcf881d

Please sign in to comment.