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

下载docker repo直接运行./start-services.sh,web login页面无法登陆 #45

Closed
iedwin opened this issue Jun 13, 2018 · 1 comment

Comments

@iedwin
Copy link

iedwin commented Jun 13, 2018

系统:Ubuntu Server 16.04.2
Docker版本: 1.13.1
浏览器: Chrome:latest

脚本运行过程中只有一个mysql migration的错误,显示启动成功了。

mysql is up
flow.ci_1   | running migration
flow.ci_1   | ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
flow.ci_1   | Flyway 4.2.0 by Boxfuse

服务器:3000 web页面用默认账号admin 123456登陆浏览器console报错,无法登陆。

main.edce124db8e9eba9278b.js:1 OPTIONS http://127.0.0.1:8080/flow-api/user/login 0 ()
main.edce124db8e9eba9278b.js:1 Error: Network Error
    at e.exports (main.edce124db8e9eba9278b.js:1)
    at XMLHttpRequest.p.onerror (main.edce124db8e9eba9278b.js:1)
@iedwin
Copy link
Author

iedwin commented Jun 15, 2018

是跨域问题,必须用下面命令启动才可以解决跨域问题。

FLOW_API_DOMAIN=yourhost.com FLOW_WEB_DOMAIN=yourhost.com ./start-services.sh

需要将 <docker-compose所在的主机ip> yourhost.com加入到你用来访问flow.io机器的/etc/hosts里

@iedwin iedwin closed this as completed Jun 15, 2018
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

1 participant