我正在尝试在Heroku中上载Rails 5.2应用程序,但是无法部署它。我正在使用Rails 5.2和Ruby ruby'2.5.1'
以下日志要求您的帮助。
谢谢!
Peeyushs-MacBook-Air: peeyushverma$ git push heroku master
Counting objects: 1642, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1588/1588), done.
Writing objects: 100% (1642/1642), 8.01 MiB | 257.00 KiB/s, done.
Total 1642 (delta 684), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.5.1
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from http://rubygems.org/...........
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Fetching version metadata from http://rubygems.org/..
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from http://rubygems.org/.
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Could not find rails-assets-jquery-3.3.1 in any of the sources
remote: Bundler Output: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: Fetching gem metadata from http://rubygems.org/...........
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Fetching version metadata from http://rubygems.org/..
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from http://rubygems.org/.
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Could not find rails-assets-jquery-3.3.1 in any of the sources
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to.
remote:
To https://git.heroku.com/.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/.git'
答案 0 :(得分:0)
在您的assets/javascripts/application.js
中,尝试将//=require jquery
替换为//=require jquery3
答案 1 :(得分:0)
我认为您应该从//=require jquery
中删除//=require jquery3
或assets/javascripts/application.js
,并使用默认的rails //= require rails-ujs
并尝试再次部署。