2012-07-12 25 views
11

पर रेडमाइन तैनाती है मैं अपने सिर को उसके सिर पर टक्कर लगी है जो कि उसके पड़ोसी देवदार पर रेडमाइन 2.0.3 तैनात करने की कोशिश कर रहा है।हेरोकू सीडर

मुझे स्क्लाइट मणि के साथ तैनाती के साथ बहुत सी समस्याएं थीं इसलिए मैंने अपने जेमफाइल से हटाए गए सभी स्क्लाइट संदर्भ हटा दिए, हटाए गए Gemfile.lock, रन बंडल इंस्टॉल किया, और खुशी से उसकेोकू को धक्का दिया।

मैं heroku run rake db:migrate भाग गया और मैं अपने ऐप (http://blooming-river-8784.herokuapp.com/) को ब्राउज़ किया था और मैं निम्न देखें:

अद्यतन !! -> जब मैं 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= 

मैं सफलता के बिना इस अंतिम पंक्ति googled। ताकि कारण है कि मैं यहाँ पोस्ट कर रहा हूँ उम्मीद किसी को मदद मिलेगी :)

यहाँ मेरी 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 
+0

कहाँ आपको लगता है कि Gemfile मिला? –

+1

क्या आप जेमफाइल प्राप्त करते हैं जब आप gihub –

उत्तर

0
gem 'taps' #Please add to Gemfile. 
+1

से redmine 2.0.3 क्लोन करते हैं तो त्वरित उत्तर शमीथ के लिए धन्यवाद! लेकिन यह अभी भी असफल रहा है मैंने जेमफाइल को 'मणि' टैप्स 'जोड़ा और जब मैंने उसेोकू में धक्का दिया तो मुझे ' चल रहा है: रेक संपत्ति: प्रीकंपाइल रेक निरस्त! सर्वर से कनेक्ट नहीं हो सका: कनेक्शन अस्वीकार कर दिया गया सर्वर सर्वर पर चल रहा है "127.0.0.1" और पोर्ट 5432 पर टीसीपी/आईपी कनेक्शन स्वीकार कर रहा है? कार्य: TOP => पर्यावरण' इसलिए मैंने 'config.assets.initialize_on_precompile = false' को 'config/application.rb'' में जोड़ा और फिर से धक्का दिया। इस बार यह सही ढंग से धक्का दिया गया लेकिन जब मैं अपनी साइट में ब्राउज़ करता हूं और लॉग में एक ही संदेश ब्राउज़ करता हूं तो मुझे वही त्रुटि मिलती है। –

+0

'समूह: संपत्ति, मणि 'therubyracer' मणि 'सास-रेल' होते हैं" ~> 3.1.0 " मणि 'कॉफी-रेल'," ~> 3.1.0 " मणि 'uglifier' end' और ** बंडल इंस्टॉल ** ** रेक संपत्तियां: प्रीकंपाइल ** –

+0

ठीक है।जब मैं इंस्टॉल करता हूं तो मुझे अपने जेमफाइल में जोड़ा गया और मुझे मिल गया 'बंडलर मणि "रेलवे" ' के लिए संगत संस्करण नहीं ढूंढ सका, मैंने रेल (रेल .1) के लिए एक अलग मणि संस्करण (कॉफी.1) के लिए एक अलग मणि संस्करण स्थापित करने की समस्या तय की है (3.2.2), बंडल स्थापित, raked संपत्ति: precompile। Heroku AAAANNNNDDDD को धक्का ..... विफल रहता है! वही 'त्रुटि एच 10 (ऐप क्रैश हो गया) -> ब्लूमिंग-river-8784.herokuapp.com/ dyno = queue = प्रतीक्षा = सेवा = स्थिति = 503 बाइट =' मैं वास्तव में यहां खो गया हूं। @ शहीथ यह ठीक है अगर मैं आपके लिए ऐप में लॉग इन करने के लिए प्रमाण-पत्र प्रदान करता हूं और बताता हूं कि क्या गलत है ?? –

18

मैं एक ही मुद्दा प्रयोग किया गया है है।

समस्या यहां से आता है:

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

नई प्लगइन्स के लिए चेतावनी की तरह लग रहा न सिर्फ एक चेतावनी है, यह एप्लिकेशन बाहर निकालता है। इससे कोई फर्क नहीं पड़ता कि आपके पास ऐप/विक्रेता/प्लगइन्स में कोई प्लगइन नहीं है, क्योंकि जब आप पुश करते हैं तो उसकाोकू उन्हें जोड़ रहा है (मेरे मामले में यह rails_log_stdout, rails31_enable_runtime_asset_compilation और rails3_serve_static_assets जोड़ रहा था)।

अब के लिए सबसे आसान फिक्स कॉन्फ़िगर/environment.rb में "निकास 1" पंक्ति को टिप्पणी या निकालना है। ऐसा लगता है कि सब कुछ ठीक काम कर रहा है। मुझे लगता है कि यह चेतावनी & निकास केवल कुछ प्रकार की हार्ड बहिष्करण चेतावनी है, लेकिन कोड अभी भी इन प्लगइन के साथ चल सकता है।

+0

वाह !! @bfcapell कि बहुत मददगार था !! अब मैं माइग्रेशन को –

+0

निष्पादित करता हूं कि यह लिंक टूटा हुआ है। – iluvcapra

+0

धन्यवाद @iluvcapra, मैंने प्रतिबद्ध लिंक अपडेट किया है। ऐसा लगता है कि रेडमाइन ने अपने रेपो से कुछ शाखाओं को छीन लिया। – bfcapell

1

मैं कैसे कदम से Heroku चरण पर redmine 2 को तैनात करने के बारे में अपने ब्लॉग में पोस्ट लिखा है: how to deploy redmine to heroku