Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发布问题 #252

Closed
zongzi8899 opened this issue May 5, 2017 · 8 comments
Closed

发布问题 #252

zongzi8899 opened this issue May 5, 2017 · 8 comments

Comments

@zongzi8899
Copy link

qqq

@zongzi8899
Copy link
Author

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

@FatFatFox
Copy link

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

@zuiidea
Copy link
Owner

zuiidea commented May 8, 2017

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

@zongzi8899
Copy link
Author

zongzi8899 commented May 8, 2017 via email

@zuiidea
Copy link
Owner

zuiidea commented May 8, 2017

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

@zongzi8899
Copy link
Author

zongzi8899 commented May 8, 2017 via email

@zuiidea zuiidea closed this as completed May 11, 2017
@change9326
Copy link

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

@mapengze
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants