bodyno / react-starter-kit

Start your first React App. By using React, Redux, and React-Router.

Home Page:https://github.com/bodyno/react-starter-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

项目如何部署到静态资源服务器上?

ajnudnyy opened this issue · comments

commented

项目打完包之后,压缩后的代码可以直接copy到如nginx的资源服务器上运行访问吗?

commented

谢谢大哥

发布到线上并不是复制过去的……比方说会有路径问题 发布到线上有很多东西可以搜搜的
大佬是怎么玩的Nginx呀 我还没有玩过

目前是打包时自动将文件上传至oss
然后指定compiler_public_path为oss的路径
这样做是比较方便的