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版不工作 #18

Closed
jshpng opened this issue Sep 28, 2017 · 4 comments
Closed

docker版不工作 #18

jshpng opened this issue Sep 28, 2017 · 4 comments
Labels
Question Reports related to user questions and FAQ.

Comments

@jshpng
Copy link

jshpng commented Sep 28, 2017

request pending

docker版,跑起来怎么是这样?点“try without login”之后,http://ip:8080/api/user/temp 这个请求一直是pending

@brookshi
Copy link
Owner

是windows上还是linux上的docker呢,这看起来像是数据库没连上, 进到数据库看下

@jshpng
Copy link
Author

jshpng commented Sep 29, 2017

后来我直接跑的代码,可以用。
我是觉得docker版应该拉下来直接就能用,回头我进去仔细看看哈。

@brookshi
Copy link
Owner

应该是拉下来就可以用的,我在服务器上的部署就是这样,没什么问题

@brookshi brookshi added the Question Reports related to user questions and FAQ. label Sep 29, 2017
@brookshi
Copy link
Owner

有时可能确实第一次启动后不工作,可以进入容器: sudo docker exec -it hitchhiker bash,然后在容器里执行pm2 restart index就可以了。
原因是使用的数据库ORM在同步schema时可能会同步不上.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Reports related to user questions and FAQ.
Projects
None yet
Development

No branches or pull requests

2 participants