antd-admin icon indicating copy to clipboard operation
antd-admin copied to clipboard

怎么在apache上发布dist的代码啊

Open gnoyuy opened this issue 9 years ago • 4 comments

我运行了npm run build并且生成了dist下的相关文件,之后我怎么运行呢,还是 npm run dev?还是有其他命令,或者我想发布到apache服务器上,可以做到吗?求解释一下,小白不尽感激

gnoyuy avatar Apr 21 '17 07:04 gnoyuy

直接运行index.html就可以了,如果要发布到tomcat这种的,那放到目录里,然后web.xml配置指向index.html就行了。 如果有nginx那就直接增加配置,指向对应文件夹下的index.html

OptimusYang avatar Apr 24 '17 09:04 OptimusYang

现在的版本不能直接运行了,必须配置服务器,4.0-dev及之前的可以

zuiidea avatar Apr 24 '17 09:04 zuiidea

@yhany 你好 请问你是不和部署到tomcat 下的

change9326 avatar May 22 '17 09:05 change9326

参考 https://github.com/ant-design/ant-design/issues/2226

superlbr avatar Mar 09 '18 08:03 superlbr