当我尝试将代码推送到Heroku上时,似乎在下面列出了一个参数错误。查看ArgumentError行之后的前几条消息,我认为这是因为我有redis gem。由于我不知道发生了什么,我在做什么错?
.....
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: ArgumentError: invalid url
remote: /tmp/build_5520123e0f01ae60332802520d05d1b7/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:350:in `_parse_options'
......
我的GemFile仅供参考
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.6'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem "bcrypt", "3.1.7"
gem "faker", "1.4.2"
gem 'bootstrap-sass', '3.2.0.0'
gem 'backstretch-rails', '~>2.0.4'
gem "font-awesome-rails"
gem 'redis', '~> 3.0.1'
gem 'hiredis', '~> 0.4.5'
gem 'braintree', '~> 2.33.1'
gem 'figaro', '~> 0.7.0'
gem 'gon', '~> 5.1.2'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
group :development do
gem "better_errors"
end
group :production do
gem 'unicorn', '4.8.3'
gem 'rails_12factor', '0.0.2'
end
REDIS消息有点红鲱鱼
确保.git/config
为heroku设置正确。
就像是:
[远程“ heroku”]
网址= [email protected]:my-awesome-project.git
并不是:
[远程“ heroku”]
后者将启动您的部署,一切都会正常进行,但是编译将失败。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句