build: Fix issue with production build not working

This commit is contained in:
Aleksi Lassila
2024-06-17 00:50:19 +03:00
parent 0107b4f7c3
commit 663d842ae5
4 changed files with 4 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ services:
`npm install --prefix backend`\
`npm run build`
4. Start the app:\
`node backend/dist/main`
`node backend/dist/src/main`
#### Reiverr will be accessible via port 9494 by default.

View File

@@ -11,7 +11,7 @@
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:prod": "node dist/src/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",

View File

@@ -13,7 +13,7 @@ import { join } from 'path';
UsersModule,
AuthModule,
ServeStaticModule.forRoot({
rootPath: join(__dirname, 'dist'),
rootPath: join(__dirname, '../dist'),
}),
],
controllers: [AppController],

View File

@@ -1,5 +1,6 @@
export function getRandomProfilePicture() {
const pictures = Object.keys(profilePictures);
// @ts-ignore
return profilePictures[pictures[Math.floor(Math.random() * pictures.length)]];
}