お世話になります
どうしても修正ができず悩んでいます
環境は下記のとおりです
ruby -v 2.6.3
rails -v 6.0.0
sqlite3 --version 3.27.1 2019-02-08 13:17:39 0eca3dd3d38b31c92b49ca2d311128b74584714d9e7de895b1a6286ef959a1dd
今は gem install railsとすると勝手に6.0.0がインストールされます
そこでめちゃくちゃ苦しんでいます
Gemfile source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.6.3' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 6.0.0' # Use sqlite3 as the database for Active Record gem 'sqlite3', '~> 1.4' # Use Puma as the app server gem 'puma', '~> 3.11' # Use SCSS for stylesheets gem 'sass-rails', '~> 5' # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker gem 'webpacker', '~> 4.0' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use Active Storage variant # gem 'image_processing', '~> 1.2' # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.2', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '>= 3.0.5', '< 3.2' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' # Easy installation and use of web drivers to run system tests with browsers gem 'webdrivers' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
よろしくご指導下さい
ちなみにhomeview及びwebpackerやyarnはインストールしました
下記が実行した経緯です
ec2-user:~/environment/myapp (master) $ rails s => Booting Puma => Rails 6.0.0 application starting in development => Run `rails server --help` for more startup options warning Skipping preferred cache folder "/home/ec2-user/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-501". Puma starting in single mode... * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:8080 Use Ctrl-C to stop warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-501". Puma starting in single mode... * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:8080 Use Ctrl-C to stop Started GET "/" for 61.192.112.95 at 2019-09-05 14:25:43 +0900 Cannot render console from 61.192.112.95! Allowed networks: 127.0.0.0/127.255.255.255, ::1 (1.9ms) SELECT sqlite_version(*) RuntimeError (Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8.): activerecord (6.0.0) lib/active_record/connection_adapters/sqlite3_adapter.rb:336:in `check_version' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:880:in `block in new_connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:879:in `tap' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:879:in `new_connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:923:in `checkout_new_connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:902:in `try_to_checkout_new_connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:863:in `acquire_connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:587:in `checkout' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:431:in `connection' activerecord (6.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:1111:in `retrieve_connection' activerecord (6.0.0) lib/active_record/connection_handling.rb:231:in `retrieve_connection' activerecord (6.0.0) lib/active_record/connection_handling.rb:199:in `connection' activerecord (6.0.0) lib/active_record/migration.rb:562:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.0.0) lib/active_support/callbacks.rb:101:in `run_callbacks' actionpack (6.0.0) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call' web-console (4.0.1) lib/web_console/middleware.rb:132:in `call_app' web-console (4.0.1) lib/web_console/middleware.rb:19:in `block in call' web-console (4.0.1) lib/web_console/middleware.rb:17:in `catch' web-console (4.0.1) lib/web_console/middleware.rb:17:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.0.0) lib/rails/rack/logger.rb:38:in `call_app' railties (6.0.0) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.0.0) lib/active_support/tagged_logging.rb:80:in `block in tagged' activesupport (6.0.0) lib/active_support/tagged_logging.rb:28:in `tagged' activesupport (6.0.0) lib/active_support/tagged_logging.rb:80:in `tagged' railties (6.0.0) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/request_id.rb:27:in `call' rack (2.0.7) lib/rack/method_override.rb:22:in `call' rack (2.0.7) lib/rack/runtime.rb:22:in `call' activesupport (6.0.0) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/static.rb:126:in `call' rack (2.0.7) lib/rack/sendfile.rb:111:in `call' actionpack (6.0.0) lib/action_dispatch/middleware/host_authorization.rb:83:in `call' webpacker (4.0.7) lib/webpacker/dev_server_proxy.rb:29:in `perform_request' rack-proxy (0.6.5) lib/rack/proxy.rb:57:in `call' railties (6.0.0) lib/rails/engine.rb:526:in `call' puma (3.12.1) lib/puma/configuration.rb:227:in `call' puma (3.12.1) lib/puma/server.rb:660:in `handle_request' puma (3.12.1) lib/puma/server.rb:474:in `process_client' puma (3.12.1) lib/puma/server.rb:334:in `block in run' puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread'
ここで実行してRun Preview Preview Running Application ブラウザに反映されます
参考にしたサイトは
https://qiita.com/taiteam/items/a37c60fc15c1aa5bb606
https://qiita.com/kai_kou/items/c18b68a7916251231f6d
よろしくお願いいたします
回答2件
あなたの回答
tips
プレビュー