Создание базы данных для нового приложения Rails - PullRequest
0 голосов
/ 15 января 2020

Я пытаюсь запустить свое первое приложение на Rails, как описано в следующем руководстве. https://gorails.com/setup/ubuntu/18.04#final -шагов

Я успешно прошел через множество обручей, но получил несколько конфликтов ошибок наряду с предупреждением Проверка целостности : Шаблоны верхнего уровня не совпадают с ошибкой Проверка целостности не удалась ошибка после того, как я использовал следующую команду: rails new myapp -d mysql. Я довольно новичок в разработке на Rails, поэтому понятия не имею, что происходит.

Вот мой вывод терминала Ubuntu 18.04.2 LTS:

DESKTOP-J73UANO:~/.ssh$  rails new myapp -d mysql
       exist
   identical  README.md
   identical  Rakefile
   identical  .ruby-version
   identical  config.ru
    conflict  .gitignore
Overwrite /home/gaandrey/.ssh/myapp/.gitignore? (enter "h" for help) [Ynaqdhm] y
       force  .gitignore
    conflict  Gemfile
Overwrite /home/gaandrey/.ssh/myapp/Gemfile? (enter "h" for help) [Ynaqdhm] y
       force  Gemfile
         run  git init from "."
Reinitialized existing Git repository in /home/gaandrey/.ssh/myapp/.git/
    conflict  package.json
Overwrite /home/gaandrey/.ssh/myapp/package.json? (enter "h" for help) [Ynaqdhm] y
       force  package.json
       exist  app
   identical  app/assets/config/manifest.js
   identical  app/assets/stylesheets/application.css
   identical  app/channels/application_cable/channel.rb
   identical  app/channels/application_cable/connection.rb
   identical  app/controllers/application_controller.rb
   identical  app/helpers/application_helper.rb
   identical  app/javascript/channels/consumer.js
   identical  app/javascript/channels/index.js
   identical  app/javascript/packs/application.js
   identical  app/jobs/application_job.rb
   identical  app/mailers/application_mailer.rb
   identical  app/models/application_record.rb
   identical  app/views/layouts/application.html.erb
   identical  app/views/layouts/mailer.html.erb
   identical  app/views/layouts/mailer.text.erb
   identical  app/assets/images/.keep
   identical  app/controllers/concerns/.keep
   identical  app/models/concerns/.keep
       exist  bin
    conflict  bin/rails
Overwrite /home/gaandrey/.ssh/myapp/bin/rails? (enter "h" for help) [Ynaqdhm] y
       force  bin/rails
    conflict  bin/rake
Overwrite /home/gaandrey/.ssh/myapp/bin/rake? (enter "h" for help) [Ynaqdhm] y
       force  bin/rake
   identical  bin/setup
   identical  bin/yarn
       exist  config
   identical  config/routes.rb
   identical  config/application.rb
   identical  config/environment.rb
   identical  config/cable.yml
   identical  config/puma.rb
   identical  config/spring.rb
   identical  config/storage.yml
       exist  config/environments
   identical  config/environments/development.rb
   identical  config/environments/production.rb
   identical  config/environments/test.rb
       exist  config/initializers
   identical  config/initializers/application_controller_renderer.rb
   identical  config/initializers/assets.rb
   identical  config/initializers/backtrace_silencers.rb
   identical  config/initializers/content_security_policy.rb
   identical  config/initializers/cookies_serializer.rb
      create  config/initializers/cors.rb
   identical  config/initializers/filter_parameter_logging.rb
   identical  config/initializers/inflections.rb
   identical  config/initializers/mime_types.rb
      create  config/initializers/new_framework_defaults_6_0.rb
   identical  config/initializers/wrap_parameters.rb
       exist  config/locales
   identical  config/locales/en.yml
      append  .gitignore
   identical  config/boot.rb
    conflict  config/database.yml
Overwrite /home/gaandrey/.ssh/myapp/config/database.yml? (enter "h" for help) [Ynaqdhm] y
       force  config/database.yml
       exist  db
   identical  db/seeds.rb
       exist  lib
       exist  lib/tasks
   identical  lib/tasks/.keep
       exist  lib/assets
   identical  lib/assets/.keep
       exist  log
   identical  log/.keep
       exist  public
   identical  public/404.html
   identical  public/422.html
   identical  public/500.html
   identical  public/apple-touch-icon-precomposed.png
   identical  public/apple-touch-icon.png
   identical  public/favicon.ico
   identical  public/robots.txt
       exist  tmp
   identical  tmp/.keep
       exist  tmp/pids
   identical  tmp/pids/.keep
       exist  tmp/cache
       exist  tmp/cache/assets
       exist  vendor
   identical  vendor/.keep
       exist  test/fixtures
   identical  test/fixtures/.keep
       exist  test/fixtures/files
   identical  test/fixtures/files/.keep
       exist  test/controllers
   identical  test/controllers/.keep
       exist  test/mailers
   identical  test/mailers/.keep
       exist  test/models
   identical  test/models/.keep
       exist  test/helpers
   identical  test/helpers/.keep
       exist  test/integration
   identical  test/integration/.keep
   identical  test/channels/application_cable/connection_test.rb
   identical  test/test_helper.rb
       exist  test/system
   identical  test/system/.keep
   identical  test/application_system_test_case.rb
       exist  storage
   identical  storage/.keep
       exist  tmp/storage
   identical  tmp/storage/.keep
      remove  config/initializers/cors.rb
      remove  config/initializers/new_framework_defaults_6_0.rb
         run  bundle install
The 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`.
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 13.0.1
Using concurrent-ruby 1.1.5
Using i18n 1.8.2
Using minitest 5.14.0
Using thread_safe 0.3.6
Using tzinfo 1.2.6
Using zeitwerk 2.2.2
Using activesupport 6.0.2.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.2.1
Using rack 2.1.1
Using rack-test 1.1.0
Using actionpack 6.0.2.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 6.0.2.1
Using globalid 0.4.2
Using activejob 6.0.2.1
Using activemodel 6.0.2.1
Using activerecord 6.0.2.1
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 6.0.2.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailbox 6.0.2.1
Using actionmailer 6.0.2.1
Using actiontext 6.0.2.1
Using public_suffix 4.0.3
Using addressable 2.7.0
Using bindex 0.8.1
Using msgpack 1.3.1
Using bootsnap 1.4.5
Using bundler 2.1.4
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.30.0
Using childprocess 3.0.0
Using ffi 1.12.1
Using jbuilder 2.9.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.1
Using ruby_dep 1.5.0
Using listen 3.1.5
Using method_source 0.9.2
Fetching mysql2 0.5.3
Installing mysql2 0.5.3 with native extensions
Using puma 4.3.1
Using rack-proxy 0.6.5
Using thor 1.0.1
Using railties 6.0.2.1
Using sprockets 4.0.0
Using sprockets-rails 3.2.1
Using rails 6.0.2.1
Using rubyzip 2.0.0
Using sassc 2.2.1
Using tilt 2.0.10
Using sassc-rails 2.1.2
Using sass-rails 6.0.0
Using selenium-webdriver 3.142.7
Using spring 2.1.0
Using spring-watcher-listen 2.0.1
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using web-console 4.0.1
Using webdrivers 4.2.0
Using webpacker 4.2.2
Bundle complete! 17 Gemfile dependencies, 75 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
         run  bundle binstubs bundler
The 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`.
Skipped bundle since it already exists.
If you want to overwrite skipped stubs, use --force.
         run  bundle exec spring binstub --all
* bin/rake: Spring inserted
* bin/rails: Spring inserted
       rails  webpacker:install
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
warning Integrity check: Top level patterns don't match
error Integrity check failed
error Found 1 errors.


========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================


To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).
...