Skip to content

Commit 3942c92

Browse files
authored
Merge pull request #136 from mcode/disable-hmr-prod
disable hmr in prod
2 parents b7a7029 + f5ece79 commit 3942c92

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN npm install
88

99
WORKDIR /home/node/app/frontend
1010
RUN npm install
11+
RUN npm run build
1112

1213
WORKDIR /home/node/app
1314

dockerRunnerProd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/sh
22

33
cd frontend
4-
( npm run start ) & SERVER_PID=$!
4+
npm run build
5+
( npm run preview ) & SERVER_PID=$!
56

67
cd ../backend
78
( npm run start ) & BACKEND_SERVER_PID=$!

0 commit comments

Comments
 (0)