0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloud9のrailsアプリへのブラウザからのアクセス方法(WEBrickの場合)

Last updated at Posted at 2016-09-18

Cloud9でrailsアプリにアクセスする方法のメモ。

  • 前提
  • workspaceは"blank"。
  • 自前でruby,railsをインストールした環境。
  • もっと効率的な方法があるかもしれない。

1 bashコンソールからWEBrickを起動

$ rails s -b $IP -p $PORT

2-1 コンソールからブラウザを開く場合

  • 以下ようなのメッセージが出力されるので
=> Booting Puma
=> Rails 5.0.0.1 application starting in development on http://0.0.0.0:8080
  • http://0.0.0.0:8080のところにマウスをあてて左クリック>「open」を選択。
    chromeが立ち上がる。

2-2「Share this workspace」を利用する場合

  • 右上の「Share」ボタンを左クリック>「Application」のリンクをopenする。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?