Не удалось обнаружить ошибку задач rake при развертывании приложения rails на heroku - PullRequest
0 голосов
/ 18 марта 2020

Я пытаюсь развернуть приложение rails на heroku, но я получаю эту ошибку, когда делаю git pu sh masterku master, gemfile такой же, как и в Railstutorial.org, глава 2, в уроке, который он использует cloud9 и я использую vscode с Ubuntu WSL, может быть, в этом проблема, но я не знаю слишком много:

remote: -----> Detecting rake tasks
remote: 
remote:  !
remote:  !     Could not detect rake tasks
remote:  !     ensure you can run `$ bundle exec rake -P` against your app
remote:  !     and using the production group of your Gemfile.
remote:  !     rake aborted!
remote:  !     LoadError: cannot load such file -- bootsnap/setup
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/config/boot.rb:4:in `require'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/config/boot.rb:4:in `<top (required)>'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/config/application.rb:1:in `require_relative'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/config/application.rb:1:in `<top (required)>'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/Rakefile:4:in `require_relative'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/Rakefile:4:in `<top (required)>'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load'     
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:104:in `block in 
load_rakefile'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:103:in `load_rakefile'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:82:in `block in run'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/application.rb:80:in `run'      
remote:  !     /tmp/build_56478bc60a1a9cce8ba626511cb686a6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'        
remote:  !     vendor/bundle/bin/rake:29:in `load'
remote:  !     vendor/bundle/bin/rake:29:in `<main>'
remote:  !

Это мой гемфайл:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.7.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.0'
# Use sqlite3 as the database for Active Record
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder'
gem 'sdoc',         '0.4.0', group: :doc

group :development, :test do
  gem 'sqlite3',     '1.3.9'
  gem 'byebug'
  gem 'web-console'
  gem 'spring',      '1.1.3'
end

group :production do
  gem 'pg',             '0.17.1'
  gem 'rails_12factor', '0.0.2'
end
...