Skip to content

Commit

Permalink
修改端口为9527
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgwr authored and gitee-org committed Nov 16, 2021
1 parent d905356 commit e4e0b29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM waterknife/centos-nginx-jdk8
FROM waterknife/centos-nginx-jdk8-mysql
WORKDIR /lsg/
COPY backend/target/*.jar ./app.jar
COPY entrypoint.sh ./
EXPOSE 80
ENTRYPOINT ["sh","entrypoint.sh"]
EXPOSE 9527
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
port: 80 # 这个端口要和vue项目里vue.config.js里的devServer里面配置的相同
port: 9527 # 这个端口要和vue项目里vue.config.js里的devServer里面配置的相同
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down
2 changes: 1 addition & 1 deletion frontend/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = {
devServer: {
// development server port 8000
port: 8000,
proxy: 'http://localhost:80'
proxy: 'http://localhost:9527'
},

// disable source map in production
Expand Down

0 comments on commit e4e0b29

Please sign in to comment.