在heroku上部署我有很大的问题。真的不知道为什么它不起作用。
这是我的宝石文件:
gem 'rails', '3.2.0'
gem 'pg'
group :assets do
gem 'sass-rails', '~> 3.2.3'
end
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'jquery-rails'
gem "rspec-rails", ">= 2.8.1", :group => [:development, :test]
gem "factory_girl_rails", ">= 1.7.0", :group => :test
gem "email_spec", ">= 1.2.1", :group => :test
gem "cucumber-rails", ">= 1.3.0", :group => :test
gem "capybara", ">= 1.1.2", :group => :test
gem "database_cleaner", ">= 0.7.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "devise", ">= 2.0.4"
gem 'haml-rails', '>= 0.3.4', :group => :development
gem 'bootstrap-sass', '~> 2.0.2'
Heroku 日志:
cache: [GET /] miss
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
vendor/bundle/ruby/1.9.1/gems/railties-3.2.0/lib/rails/rack/log_tailer.rb:14:in `call'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
简单的应用布局
%html
%head
%title iPinTeam
%meta{:charset => "utf-8"}
%meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"}
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
= stylesheet_link_tag :application, :media => "all"
= javascript_include_tag :application
= csrf_meta_tags
%body{:class => params[:controller]}
.navbar.navbar-fixed-top
.navbar-inner
.container
= render 'shared/navigation'
#container.container
#main{:role => "main"}
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String)
= yield
%footer
抱歉,如果这个问题完全愚蠢,我对为什么给出这个错误有点困惑:(在日志中也有很多错误:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.0
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.0
etc...
在 heroku 上仍然很差 - 很抱歉,但出了点问题。
认为问题可能出在 heroku 上的 gem bootstrap-sass 上。我已经尝试切换到瘦 Web 服务器,但它完全一团糟:(有人可以帮我解决这个问题,也许可以稍微描述一下错误。如果需要一些额外的信息,我会立即发布。谢谢...