Подтвердить что ты не робот

Redmine разворачивается на кедре героку

Я ударился головой о стену, пытаясь развернуть redmine 2.0.3 на кедре герою.

У меня было много проблем с развертыванием с помощью sqlite gem, поэтому я удалил все ссылки sqlite из моего Gemefile, удалил Gemfile.lock, выполнил установку пакета и счастливо нажал на герою.

Я побежал heroku run rake db:migrate, и я просмотрел свое приложение (http://blooming-river-8784.herokuapp.com/), и я вижу следующее:

UPDATE!! → Когда я запускаю heroku run rake db:migrate, я получаю следующие предупреждающие сообщения:

Running rake db:migrate attached to terminal... up, run.1
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
Plugins in vendor/plugins (/app/vendor/plugins) are no longer allowed. Please, put your Redmine plugins in the `plugins` directory at the root of your Redmine directory (/app/plugins)

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.

Я проверил журналы, и я вижу следующее сообщение:

2012-07-12T01:34:47+00:00 heroku[run.1]: Starting process with command bundle exec rake db:migrate  
2012-07-12T01:34:47+00:00 heroku[run.1]: State changed from starting to up  
2012-07-12T01:34:53+00:00 heroku[run.1]: Process exited with status 1  
2012-07-12T01:34:53+00:00 heroku[run.1]: State changed from up to complete
2012-07-12T01:36:03+00:00 heroku[router]: Error H10 (App crashed) -> GET blooming-river-8784.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=

Я искал эту последнюю строку без успеха. так что почему я публикую здесь, надеясь, что кто-то поможет:)

Вот мой Gemfile

source 'http://rubygems.org'

gem 'rails', '3.2.6'  
gem 'prototype-rails', '3.2.1'  
gem "i18n", "~> 0.6.0"  
gem "coderay", "~> 1.0.6"  
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]  
gem "builder"  

# Optional gem for LDAP authentication
group :ldap do  
  gem "net-ldap", "~> 0.3.1"  
end  

# Optional gem for OpenID authentication  
group :openid do  
  gem "ruby-openid", "~> 2.1.4", :require => "openid"  
  gem "rack-openid"  
end  

# Database gems  
platforms :mri, :mingw do  
  group :postgresql do  
    gem "pg", ">= 0.11.0"  
  end  
end  

platforms :jruby do  
  gem "jruby-openssl"  

  group :postgresql do  
    gem "activerecord-jdbcpostgresql-adapter"  
  end  
end  

group :development do  
  gem "rdoc", ">= 2.4.2"  
  gem "yard"  
end  

group :test do  
  gem "shoulda", "~> 2.11"  
  gem "mocha"  
end  

local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")  
if File.exists?(local_gemfile)  
  puts "Loading Gemfile.local ..." if $DEBUG # 'ruby -d' or 'bundle -v'
  instance_eval File.read(local_gemfile)  
end  

# Load plugins' Gemfiles  
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|  
  puts "Loading #{file} ..." if $DEBUG # 'ruby -d' or 'bundle -v'  
  instance_eval File.read(file)  
end 
4b9b3361

Ответ 1

Я экспериментировал с той же проблемой.

Проблема здесь:

https://github.com/redmine/redmine/commit/6fca0289055fae8f066eeb493a590b35e6f26cc0

Похоже, предупреждение для новых плагинов - это не просто предупреждение, оно выходит из приложения. Неважно, если у вас нет плагинов в app/vendor/plugins, потому что heroku добавляет их при нажатии (в моем случае он добавлял rails_log_stdout, rails31_enable_runtime_asset_compilation и rails3_serve_static_assets).

Самое простое исправление на данный момент - прокомментировать или удалить строку "exit 1" в config/environment.rb. Похоже, все работает нормально. Я предполагаю, что это предупреждение & exit - это просто какое-то жесткое предупреждение об утомлении, но код все равно может работать с этими плагинами.

Ответ 3

   gem 'taps'  #Please add to Gemfile.