File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ ** /node_modules
Original file line number Diff line number Diff line change
1
+ FROM node:20.12.2
2
+
3
+ RUN mkdir /app
4
+
5
+ WORKDIR /app
6
+
7
+ COPY . .
8
+
9
+ RUN yarn install
10
+
11
+ ENV NODE_ENV=production
12
+
13
+ EXPOSE 3000
14
+
15
+ ENTRYPOINT [ "yarn" , "start" ]
Original file line number Diff line number Diff line change 5
5
"main" : " src/server/server.js" ,
6
6
"scripts" : {
7
7
"build" : " webpack --mode production" ,
8
- "start" : " yarn run build && node src/server/server.js" ,
8
+ "start" : " yarn run db:migrate && yarn run build && node src/server/server.js" ,
9
9
"server" : " nodemon --ignore dist/ --ignore src/client" ,
10
10
"client" : " webpack-dev-server --mode development --devtool inline-source-map --hot" ,
11
11
"dev" : " NODE_ENV=development npx concurrently --kill-others --raw --default-input-target 1 'npm run client' 'npm run server'" ,
Original file line number Diff line number Diff line change 1
1
const config = require ( './config.json' ) ;
2
2
3
3
module . exports = {
4
+ host : config . database . host ,
5
+ port : config . database . port ,
4
6
database : config . database . dbName ,
5
7
username : config . database . user ,
6
8
password : config . database . password ,
7
- dialect : 'mariadb' ,
8
- host : config . database . host ,
9
- port : config . database . port ,
9
+ dialect : config . database . dialect ,
10
10
} ;
You can’t perform that action at this time.
0 commit comments