How to access localhost:1080 on Cloud9

2019-07-17 04:21发布

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条回答
冷血范
2楼-- · 2019-07-17 04:33

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.

查看更多
登录 后发表回答