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

发布问题

Open zongzi8899 opened this issue 9 years ago • 8 comments

qqq

zongzi8899 avatar May 05 '17 03:05 zongzi8899

已经放到服务器上的了,问题如上

zongzi8899 avatar May 05 '17 03:05 zongzi8899

@zongzi8899 你已经解决了吗?我不部署到了nginx服务器上,问题和你一模一样 你部署的是tomcat服务器吧?

FatFatFox avatar May 07 '17 02:05 FatFatFox

nginx配置示例:

server
	{
		listen       666;
		server_name 47.92.30.98;
		root  /home/www/antd-admin/dist;

		location /api {
			 proxy_pass http://localhost:8000/api;
		}

		location / {
				index  index.html;
				try_files $uri $uri/ /index.html;
		}
	}

演示地址:http://47.92.30.98:666

zuiidea avatar May 08 '17 11:05 zuiidea

tomcat的也可以? 在2017年05月8日 19:09,zuiidea[email protected] 写道:

nginx配置示例:

server { listen 666; server_name 47.92.30.98; root /home/www/antd-admin/dist;

	location /api {
		 proxy_pass http://localhost:8000/api;
	}

	location / {
			index  index.html;
			try_files $uri $uri/ /index.html;
	}
}

演示地址:http://47.92.30.98:666

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

zongzi8899 avatar May 08 '17 11:05 zongzi8899

@zongzi8899 我没试过,道理都是一样,都是把所有除了资源文件的路由指向index.html

zuiidea avatar May 08 '17 11:05 zuiidea

好滴。THANKS

在2017年05月8日 19:17,zuiidea[email protected] 写道:

@zongzi8899 我没试过,道理都是一样,都是把所有除了资源文件的路由指向index.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

zongzi8899 avatar May 08 '17 11:05 zongzi8899

@zongzi8899 你好 请问你是如何部署到tomcat 下的

change9326 avatar May 22 '17 09:05 change9326

@zongzi8899 我也是部署到tomcat上面 改成了hashHistory 跟你的效果一模一样 你解决了吗

mapengze avatar Aug 23 '17 09:08 mapengze