build: Fix issue with production build not working
This commit is contained in:
@@ -88,7 +88,7 @@ services:
|
|||||||
`npm install --prefix backend`\
|
`npm install --prefix backend`\
|
||||||
`npm run build`
|
`npm run build`
|
||||||
4. Start the app:\
|
4. Start the app:\
|
||||||
`node backend/dist/main`
|
`node backend/dist/src/main`
|
||||||
|
|
||||||
#### Reiverr will be accessible via port 9494 by default.
|
#### Reiverr will be accessible via port 9494 by default.
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"start": "nest start",
|
"start": "nest start",
|
||||||
"start:dev": "nest start --watch",
|
"start:dev": "nest start --watch",
|
||||||
"start:debug": "nest start --debug --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",
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { join } from 'path';
|
|||||||
UsersModule,
|
UsersModule,
|
||||||
AuthModule,
|
AuthModule,
|
||||||
ServeStaticModule.forRoot({
|
ServeStaticModule.forRoot({
|
||||||
rootPath: join(__dirname, 'dist'),
|
rootPath: join(__dirname, '../dist'),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
controllers: [AppController],
|
controllers: [AppController],
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
export function getRandomProfilePicture() {
|
export function getRandomProfilePicture() {
|
||||||
const pictures = Object.keys(profilePictures);
|
const pictures = Object.keys(profilePictures);
|
||||||
|
// @ts-ignore
|
||||||
return profilePictures[pictures[Math.floor(Math.random() * pictures.length)]];
|
return profilePictures[pictures[Math.floor(Math.random() * pictures.length)]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user