LoginSignup
3
0

More than 3 years have passed since last update.

Rails Server起動後に、Blocked host: ホスト名.vfs.cloud9.ap-northeast-1.amazonaws.comと表示されるときの対処法

Last updated at Posted at 2021-03-27

症状

cloud9上でRailsをダウンロードして、諸々updateしてrails Serverを起動したところ下記のようなエラーが表示されてしまいました。

Railsチュートリアルを参考にセットアップをしました。

image.png

解決方法

dev環境のconfigにcloud9へのアクセスを許可するコードを書いたら、正常に動作するようになりました。

config/environments/development.rb
Rails.application.configure do
  .
  .
  .
  # Cloud9 への接続を許可する
  config.hosts.clear
end

image.png

参考

Railsチュートリアル第一章
https://railstutorial.jp/chapters/beginning?version=6.0#cha-beginning

3
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
3
0