railsチュートリアル rails server でアクセスできない
環境
Rails 5.1.6
Ruby 2.6.3
cloud9
Ruby
1 2ec2-user:~/environment $ printf "install: --no-document \nupdate: --no-document\n" >> ~/.gemrc 3ec2-user:~/environment $ gem install rails -v 5.1.6 4Successfully installed rails-5.1.6 51 gem installed 6ec2-user:~/environment $ cd ~/environment 7ec2-user:~/environment $ rails _5.1.6_ new hello_app 8 create 9 create README.md 10 create Rakefile 11 create config.ru 12 create .gitignore 13 create Gemfile 14 run git init from "." 15Initialized empty Git repository in /home/ec2-user/environment/hello_app/.git/ 16 create app 17 create app/assets/config/manifest.js 18 create app/assets/javascripts/application.js 19 create app/assets/javascripts/cable.js 20 create app/assets/stylesheets/application.css 21 create app/channels/application_cable/channel.rb 22 create app/channels/application_cable/connection.rb 23 create app/controllers/application_controller.rb 24 create app/helpers/application_helper.rb 25 create app/jobs/application_job.rb 26 create app/mailers/application_mailer.rb 27 create app/models/application_record.rb 28 create app/views/layouts/application.html.erb 29 create app/views/layouts/mailer.html.erb 30 create app/views/layouts/mailer.text.erb 31 create app/assets/images/.keep 32 create app/assets/javascripts/channels 33 create app/assets/javascripts/channels/.keep 34 create app/controllers/concerns/.keep 35 create app/models/concerns/.keep 36 create bin 37 create bin/bundle 38 create bin/rails 39 create bin/rake 40 create bin/setup 41 create bin/update 42 create bin/yarn 43 create config 44 create config/routes.rb 45 create config/application.rb 46 create config/environment.rb 47 create config/secrets.yml 48 create config/cable.yml 49 create config/puma.rb 50 create config/spring.rb 51 create config/environments 52 create config/environments/development.rb 53 create config/environments/production.rb 54 create config/environments/test.rb 55 create config/initializers 56 create config/initializers/application_controller_renderer.rb 57 create config/initializers/assets.rb 58 create config/initializers/backtrace_silencers.rb 59 create config/initializers/cookies_serializer.rb 60 create config/initializers/cors.rb 61 create config/initializers/filter_parameter_logging.rb 62 create config/initializers/inflections.rb 63 create config/initializers/mime_types.rb 64 create config/initializers/new_framework_defaults_5_1.rb 65 create config/initializers/wrap_parameters.rb 66 create config/locales 67 create config/locales/en.yml 68 create config/boot.rb 69 create config/database.yml 70 create db 71 create db/seeds.rb 72 create lib 73 create lib/tasks 74 create lib/tasks/.keep 75 create lib/assets 76 create lib/assets/.keep 77 create log 78 create log/.keep 79 create public 80 create public/404.html 81 create public/422.html 82 create public/500.html 83 create public/apple-touch-icon-precomposed.png 84 create public/apple-touch-icon.png 85 create public/favicon.ico 86 create public/robots.txt 87 create test/fixtures 88 create test/fixtures/.keep 89 create test/fixtures/files 90 create test/fixtures/files/.keep 91 create test/controllers 92 create test/controllers/.keep 93 create test/mailers 94 create test/mailers/.keep 95 create test/models 96 create test/models/.keep 97 create test/helpers 98 create test/helpers/.keep 99 create test/integration 100 create test/integration/.keep 101 create test/test_helper.rb 102 create test/system 103 create test/system/.keep 104 create test/application_system_test_case.rb 105 create tmp 106 create tmp/.keep 107 create tmp/cache 108 create tmp/cache/assets 109 create vendor 110 create vendor/.keep 111 create package.json 112 remove config/initializers/cors.rb 113 remove config/initializers/new_framework_defaults_5_1.rb 114 run bundle install 115The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 116Fetching gem metadata from https://rubygems.org/............ 117Fetching gem metadata from https://rubygems.org/. 118Resolving dependencies.... 119Using rake 13.0.1 120Using concurrent-ruby 1.1.6 121Using i18n 1.8.2 122Using minitest 5.14.0 123Using thread_safe 0.3.6 124Using tzinfo 1.2.6 125Using activesupport 5.1.7 126Using builder 3.2.4 127Using erubi 1.9.0 128Using mini_portile2 2.4.0 129Using nokogiri 1.10.8 130Using rails-dom-testing 2.0.3 131Using crass 1.0.6 132Using loofah 2.4.0 133Using rails-html-sanitizer 1.3.0 134Using actionview 5.1.7 135Using rack 2.2.2 136Using rack-test 1.1.0 137Using actionpack 5.1.7 138Using nio4r 2.5.2 139Using websocket-extensions 0.1.4 140Using websocket-driver 0.6.5 141Using actioncable 5.1.7 142Using globalid 0.4.2 143Using activejob 5.1.7 144Using mini_mime 1.0.2 145Using mail 2.7.1 146Using actionmailer 5.1.7 147Using activemodel 5.1.7 148Using arel 8.0.0 149Using activerecord 5.1.7 150Using public_suffix 4.0.3 151Using addressable 2.7.0 152Using bindex 0.8.1 153Using bundler 1.17.3 154Using byebug 11.1.1 155Using xpath 3.2.0 156Using capybara 2.18.0 157Using childprocess 3.0.0 158Using coffee-script-source 1.12.2 159Using execjs 2.7.0 160Using coffee-script 2.4.1 161Using method_source 0.9.2 162Using thor 1.0.1 163Using railties 5.1.7 164Using coffee-rails 4.2.2 165Using ffi 1.12.2 166Using jbuilder 2.10.0 167Using rb-fsevent 0.10.3 168Using rb-inotify 0.10.1 169Using ruby_dep 1.5.0 170Using listen 3.1.5 171Using puma 3.12.2 172Using sprockets 3.7.2 173Using sprockets-rails 3.2.1 174Using rails 5.1.7 175Using rubyzip 2.2.0 176Using sass-listen 4.0.0 177Using sass 3.7.4 178Using tilt 2.0.10 179Using sass-rails 5.0.7 180Using selenium-webdriver 3.142.7 181Using spring 2.1.0 182Using spring-watcher-listen 2.0.1 183Using sqlite3 1.4.2 184Using turbolinks-source 5.2.0 185Using turbolinks 5.2.1 186Using uglifier 4.2.0 187Using web-console 3.7.0 188Bundle complete! 16 Gemfile dependencies, 69 gems now installed. 189Use `bundle info [gemname]` to see where a bundled gem is installed. 190 run bundle exec spring binstub --all 191* bin/rake: Spring inserted 192* bin/rails: Spring inserted 193ec2-user:~/environment $ cd hello_app/ 194ec2-user:~/environment/hello_app (master) $ bundle install 195The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 196Using rake 13.0.1 197Using concurrent-ruby 1.1.6 198Using i18n 1.8.2 199Using minitest 5.14.0 200Using thread_safe 0.3.6 201Using tzinfo 1.2.6 202Using activesupport 5.1.7 203Using builder 3.2.4 204Using erubi 1.9.0 205Using mini_portile2 2.4.0 206Using nokogiri 1.10.8 207Using rails-dom-testing 2.0.3 208Using crass 1.0.6 209Using loofah 2.4.0 210Using rails-html-sanitizer 1.3.0 211Using actionview 5.1.7 212Using rack 2.2.2 213Using rack-test 1.1.0 214Using actionpack 5.1.7 215Using nio4r 2.5.2 216Using websocket-extensions 0.1.4 217Using websocket-driver 0.6.5 218Using actioncable 5.1.7 219Using globalid 0.4.2 220Using activejob 5.1.7 221Using mini_mime 1.0.2 222Using mail 2.7.1 223Using actionmailer 5.1.7 224Using activemodel 5.1.7 225Using arel 8.0.0 226Using activerecord 5.1.7 227Using public_suffix 4.0.3 228Using addressable 2.7.0 229Using bindex 0.8.1 230Using bundler 1.17.3 231Using byebug 11.1.1 232Using xpath 3.2.0 233Using capybara 2.18.0 234Using childprocess 3.0.0 235Using coffee-script-source 1.12.2 236Using execjs 2.7.0 237Using coffee-script 2.4.1 238Using method_source 0.9.2 239Using thor 1.0.1 240Using railties 5.1.7 241Using coffee-rails 4.2.2 242Using ffi 1.12.2 243Using jbuilder 2.10.0 244Using rb-fsevent 0.10.3 245Using rb-inotify 0.10.1 246Using ruby_dep 1.5.0 247Using listen 3.1.5 248Using puma 3.12.2 249Using sprockets 3.7.2 250Using sprockets-rails 3.2.1 251Using rails 5.1.7 252Using rubyzip 2.2.0 253Using sass-listen 4.0.0 254Using sass 3.7.4 255Using tilt 2.0.10 256Using sass-rails 5.0.7 257Using selenium-webdriver 3.142.7 258Using spring 2.1.0 259Using spring-watcher-listen 2.0.1 260Using sqlite3 1.4.2 261Using turbolinks-source 5.2.0 262Using turbolinks 5.2.1 263Using uglifier 4.2.0 264Using web-console 3.7.0 265Bundle complete! 16 Gemfile dependencies, 69 gems now installed. 266Use `bundle info [gemname]` to see where a bundled gem is installed. 267ec2-user:~/environment/hello_app (master) $ cd ~/environment/hello_app/ 268ec2-user:~/environment/hello_app (master) $ rails server 269=> Booting Puma 270=> Rails 5.1.7 application starting in development 271=> Run `rails server -h` for more startup options 272Puma starting in single mode... 273* Version 3.12.2 (ruby 2.6.3-p62), codename: Llamas in Pajamas 274* Min threads: 5, max threads: 5 275* Environment: development 276* Listening on tcp://localhost:8080 277Use Ctrl-C to stop 278
ここまでRailsチュートリアルの通りにしてきたのですが、
「Preview」→「Preview Running Application」→ブラウザを開くボタン(右下の画面内のボタン)
としてもアクセスできずに困っています。
修正点・改善策等ご教授頂きたいです。
試したこと
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。