Skip to content

Commit

Permalink
Merge pull request #89 from terwer/v4.x
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
terwer authored Apr 1, 2019
2 parents 68b06ac + 015afd3 commit 4895998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions jvue-front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ RUN npm config set registry https://registry.npm.taobao.org && \

COPY ./jvue-front .

RUN npm run build

# 注意这个一定要要在npm install后面,否则devDependencies的包无法安装
ENV HOST 0.0.0.0

CMD ["npm", "run", "start"]
CMD ["npm", "run", "dev"]
2 changes: 1 addition & 1 deletion jvue-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
"build": "nuxt build",
"start": "cross-env NODE_ENV=production node server/index.js",
"start": "nuxt build && cross-env NODE_ENV=production node server/index.js",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-pattern !.eslintrc.js --fix ."
},
Expand Down

0 comments on commit 4895998

Please sign in to comment.