如何在Cloud9上访问localhost:1080 [英] How to access localhost:1080 on Cloud9

查看:203
本文介绍了如何在Cloud9上访问localhost:1080的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Cloud9平台上的应用程序上使用指定的端口访问localhost.我正在Rails应用程序上构建一个ruby,使用下面的命令运行服务器.

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 

在特殊情况下,我需要访问其他端口(而不是localhost:3000).有人知道该怎么做吗?

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

感谢您的帮助!

推荐答案

Cloud9现在具有多个外部端口(几天前已发布,但尚未记录).您可以在端口8081或8082上运行服务,并且可以通过将相关端口附加到预览URL来访问该服务(例如 http://project-user.c9.io:8081 ).目前仅支持http,https将很快可用.

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.

这篇关于如何在Cloud9上访问localhost:1080的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆