How to access localhost:1080 on Cloud9

混江龙づ霸主 提交于 2019-12-11 03:29:34

问题


I'm trying to access localhost with specified port on my application on Cloud9 platform. I'm building a ruby on rails app, running a server with command below.

rails s -b $IP -p $PORT 

I have a special occasion where I need to access a different port (not localhost:3000). Does anyone know how to do this?

Thanks for the help!


回答1:


Cloud9 now has multiple external ports (released a few days ago but not yet documented). You can run a service on port 8081 or 8082 and it will be accessible by appending the relevant port to your preview url (e.g. http://project-user.c9.io:8081). Only http works for now, https will be available soon.



来源:https://stackoverflow.com/questions/31535529/how-to-access-localhost1080-on-cloud9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!