gin-admin-react icon indicating copy to clipboard operation
gin-admin-react copied to clipboard

后端代码

Open swzyt opened this issue 6 years ago • 3 comments

请问可以提供下后端代码吗

swzyt avatar Oct 21 '19 09:10 swzyt

config/config.js

-      target: 'http://47.105.189.180:8080/',
+      //target: 'http://47.105.189.180:8080/',
+      target: 'http://localhost:10088/',

我理解修改下这个配置就可以了。

但请教下 怎么把 gin-admin-react 打包后的代码,跟gin-adin部署在一起呢。 跟你online部署一样,shared 同一个端口。

westfly avatar Feb 14 '20 12:02 westfly

研究出来了 修改 gin-admin 的 configs/config.toml 中的 www 选项为生成的 dist 目录。

或者启动的时候用 -www 参数指定。

westfly avatar Feb 14 '20 13:02 westfly