我知道Github上有很多这些问题(我已经查看了所有这些问题),但没有一个答案对我有用。
当我尝试“git push heroku master”时,我收到错误“找不到任何来源中的libv8-3.15.11.1”。我在我的Gemfile中指定了libv8的版本(使用gem“libv8”,“〜> 3.11.8.13”),我认为这反映在我的Gemfile.lock(“libv8(3.11.8.13)”)中。我不明白为什么当我指定3.11.8.13时它正在寻找版本3.15.11.1。
我确保我对Gemfiles的所有更改都已提交(当我执行“git status”时,我“无需提交(工作目录清理)。”
我也尝试删除heroku并重新添加(使用“git remote rm heroku”然后“git push heroku master”)。
的Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :development do
gem 'sqlite3'
end
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'json'
gem 'rmagick'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
gem "twitter-bootstrap-rails"
gem "less-rails"
gem 'jquery-fileupload-rails'
end
gem 'jquery-rails'
gem 'activeadmin'
gem "meta_search", '>= 1.1.0.pre'
gem 'friendly_id'
gem 'gon'
gem 'formtastic'
gem 'js-routes'
gem "therubyracer"
gem "libv8", "~> 3.11.8.13"
gem 'carrierwave'
gem 'ckeditor_rails'
gem 'font-awesome-rails'
group :production do
gem 'pg', '0.12.2'
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
Gemfile.lock的
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.8)
actionpack (= 3.2.8)
mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activeadmin (0.5.1)
arbre (>= 1.0.1)
bourbon (>= 1.0.0)
devise (>= 1.1.2)
fastercsv
formtastic (>= 2.0.0)
inherited_resources (>= 1.3.1)
jquery-rails (>= 1.0.0)
kaminari (>= 0.13.0)
meta_search (>= 0.9.2)
rails (>= 3.0.0)
sass (>= 3.1.0)
activemodel (3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
activerecord (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
activesupport (3.2.8)
i18n (~> 0.6)
multi_json (~> 1.0)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (3.0.2)
bcrypt-ruby (3.0.1)
bourbon (3.1.1)
sass (>= 3.2.0)
thor
builder (3.0.4)
carrierwave (0.8.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
ckeditor_rails (4.0.1.1)
railties (>= 3.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.4.0)
commonjs (0.2.6)
devise (2.2.3)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)
warden (~> 1.2.1)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
fastercsv (1.5.5)
font-awesome-rails (3.0.2.0)
railties (>= 3.1)
formtastic (2.2.1)
actionpack (>= 3.0)
friendly_id (4.0.9)
gon (4.0.2)
actionpack (>= 2.3.0)
json
has_scope (0.5.1)
hike (1.2.1)
i18n (0.6.1)
inherited_resources (1.3.1)
has_scope (~> 0.5.0)
responders (~> 0.6)
journey (1.0.4)
jquery-fileupload-rails (0.4.1)
actionpack (>= 3.1)
railties (>= 3.1)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
js-routes (0.8.7)
rails (>= 3.2)
json (1.7.7)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
less (2.2.2)
commonjs (~> 0.2.6)
less-rails (2.2.6)
actionpack (>= 3.1)
less (~> 2.2.0)
libv8 (3.11.8.13)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_search (1.1.3)
actionpack (~> 3.1)
activerecord (~> 3.1)
activesupport (~> 3.1)
polyamorous (~> 0.5.0)
mime-types (1.21)
multi_json (1.6.1)
orm_adapter (0.4.0)
pg (0.12.2)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.8)
actionmailer (= 3.2.8)
actionpack (= 3.2.8)
activerecord (= 3.2.8)
activeresource (= 3.2.8)
activesupport (= 3.2.8)
bundler (~> 1.0)
railties (= 3.2.8)
railties (3.2.8)
actionpack (= 3.2.8)
activesupport (= 3.2.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12.1)
json (~> 1.4)
ref (1.0.2)
responders (0.9.3)
railties (~> 3.1)
rmagick (2.13.2)
sass (3.2.5)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
therubyracer (0.11.3)
libv8 (~> 3.11.8.12)
ref
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
twitter-bootstrap-rails (2.2.4)
actionpack (>= 3.1)
execjs
railties (>= 3.1)
tzinfo (0.3.35)
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
warden (1.2.1)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
activeadmin
carrierwave
ckeditor_rails
coffee-rails (~> 3.2.1)
font-awesome-rails
formtastic
friendly_id
gon
jquery-fileupload-rails
jquery-rails
js-routes
json
less-rails
libv8 (~> 3.11.8.13)
meta_search (>= 1.1.0.pre)
pg (= 0.12.2)
rails (= 3.2.8)
rmagick
sass-rails (~> 3.2.3)
sqlite3
therubyracer
twitter-bootstrap-rails
uglifier (>= 1.0.3)
答案 0 :(得分:0)
根据这个页面:
https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar
“therubyracer 如果您以前使用的是therubyracer或therubyracer-heroku,那么这些宝石就不再需要了,并且强烈建议不要使用这些宝石。“
因此我从测试应用程序中删除了这些内容。然后我通过ubuntu本地机器安装了node.js,并且在heroku上运行正常。
也可以看到这个问题: Rails - Could not find a JavaScript runtime?