2012-07-05 18 views
12

तो मेरा ऐप मेरी स्थानीय मशीन पर पूरी तरह से चलता है और मैंने इसे जिथब और उसकेोकू को सफलतापूर्वक धक्का दिया लेकिन जब मैं अपने ब्राउज़र में एप्लिकेशन खोलने का प्रयास करता हूं, तो मुझे निम्न त्रुटि मिलती है:"बंडलर: कमांड नहीं मिला: पतला" heroku परिनियोजन रेल

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. 

तो मैं चल

$ heroku logs 

कोशिश करते हैं और मैं अपने कंसोल में निम्नलिखित आउटपुट प्राप्त:

2012-07-05T21:52:11+00:00 heroku[slugc]: Slug compilation started 
2012-07-05T21:52:33+00:00 heroku[slugc]: Slug compilation failed: failed to compile Ruby/rails app 
2012-07-05T21:53:33+00:00 heroku[slugc]: Slug compilation started 
2012-07-05T21:53:55+00:00 heroku[slugc]: Slug compilation failed: failed to compile Ruby/rails app 
2012-07-05T21:58:45+00:00 heroku[slugc]: Slug compilation started 
2012-07-05T21:59:04+00:00 heroku[slugc]: Slug compilation failed: failed to compile Ruby/rails app 
2012-07-05T22:00:34+00:00 heroku[slugc]: Slug compilation started 
2012-07-05T22:01:21+00:00 heroku[api]: Add shared-database:5mb add-on by [email protected] 
2012-07-05T22:01:21+00:00 heroku[api]: Release v2 created by [email protected] 
2012-07-05T22:01:21+00:00 heroku[api]: Add RAILS_ENV, LANG, PATH, RACK_ENV, GEM_PATH config by [email protected] 
2012-07-05T22:01:21+00:00 heroku[api]: Release v3 created by [email protected] 
2012-07-05T22:01:23+00:00 heroku[api]: Release v4 created by [email protected] 
2012-07-05T22:01:23+00:00 heroku[api]: Deploy 23effb5 by [email protected] 
2012-07-05T22:01:24+00:00 heroku[slugc]: Slug compilation finished 
2012-07-05T22:01:27+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 4606` 
2012-07-05T22:01:30+00:00 app[web.1]: bundler: command not found: thin 
2012-07-05T22:01:30+00:00 app[web.1]: Install missing gem executables with `bundle install` 
2012-07-05T22:01:31+00:00 heroku[web.1]: Process exited with status 127 
2012-07-05T22:01:31+00:00 heroku[web.1]: State changed from starting to crashed 
2012-07-05T22:01:31+00:00 heroku[web.1]: State changed from crashed to starting 
2012-07-05T22:01:34+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 16779` 
2012-07-05T22:01:35+00:00 app[web.1]: bundler: command not found: thin 
2012-07-05T22:01:35+00:00 app[web.1]: Install missing gem executables with `bundle install` 
2012-07-05T22:01:36+00:00 heroku[web.1]: Process exited with status 127 
2012-07-05T22:01:36+00:00 heroku[web.1]: State changed from starting to crashed 
2012-07-05T22:01:37+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:38+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:49+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:49+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:50+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:51+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:51+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= 
2012-07-05T22:01:51+00:00 heroku[router]: Error H10 (App crashed) -> GET glowing-robot-9319.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes= 

मुझे यह नहीं पता कि यह क्या करना है, क्योंकि यह मेरा पहला समय है जो उसके लिए तैनात है और मुझे वेब-तैनाती के बारे में कुछ भी पता नहीं है। किसी भी तरह की सहायता का स्वागत किया जाएगा!

+0

'मणि 'पीजी' मणि 'taps'' ** ** Gemfile ** और बंडल इंस्टॉल जोड़ें। और इसे कोडू को कोडित किया और सर्वर को पुनरारंभ करें। –

उत्तर

2

आप शायद अपने Gemfile में एक मणि याद कर रहे हैं। सुनिश्चित करें कि आपके आवेदन की ज़रूरतों को जेमफाइल में निर्दिष्ट किया गया है, स्थानीय रूप से "मणि इंस्टॉल" करने के विरोध में। सत्यापित करने के लिए, आप RVM इंस्टॉल कर सकते हैं, विशेष रूप से अपने ऐप के लिए एक रत्न बनाएं, अपने ऐप डीआईआर में "बंडल इंस्टॉल" चलाएं और फिर देखें कि आपका ऐप स्थानीय रूप से चलता है या नहीं। यदि यह नहीं चलता है, तो एक मणि निश्चित रूप से गायब है।

21

मेरे लिए यह मुद्दा था कि मैंने विकास खंड में अपने जेमफाइल में पतला जोड़ा, लेकिन एक बार मैंने ऐसा किया कि उसका आरुको उत्पादन के लिए इसका उपयोग करना चाहता था, लेकिन विकास खंड में रत्न स्थापित नहीं करता है। पतले मणि को सभी वातावरणों के उपयोग के लिए विकास खंड से बाहर ले जाकर, मैं इस त्रुटि को दूर करने में सक्षम था। वैसे भी

source 'https://rubygems.org' 

gem 'rails' 
gem 'heroku' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

gem 'pg' 
gem 'thin' 

# more gems 

Heroku एक उत्पादन वेब सर्वर के लिए recommends thin:

आपका Gemfile शायद एक रेल अनुप्रयोग के लिए कुछ इस तरह दिखेगा।

अपडेट (2012-05-16): उस रेल में 3 हेरोरुवर से ऊपर वेबसर्वर लिंक अब recommends unicorn है। पतला अभी भी काम करेगा, लेकिन आप switching over to unicorn पर विचार करना चाहेंगे।

+0

टिप के लिए धन्यवाद! – wikichen

1

ऐसा प्रतीत होता है कि उसकाोकू अन्यथा यह बताने के लिए प्रसंस्करण की अनुपस्थिति में पतला शुरू करने की कोशिश कर रहा है। जैसा कि ऊपर बताया गया है, जेनफाइल में थिन स्थापित नहीं है, इसलिए त्रुटि। जैसा कि उपरोक्त उल्लेख किया गया है, विकास समूह से पतला लेना काम करेगा।

आप Heroku पतला के बजाय यूनिकॉर्न, शुरू करने के लिए अपने config/unicorn.rb और के रूप में यहां सूचित अपने Procfile की स्थापना प्राप्त करना चाहते हैं: https://devcenter.heroku.com/articles/rails-unicorn

यूनिकॉर्न के लिए Procfile सामग्री ऊपर के लिंक में सूचीबद्ध हैं, और Procfile के बारे में अधिक जानकारी (केवल आपके आवेदन की जड़ में 'Procfile' नामक एक फ़ाइल): https://devcenter.heroku.com/articles/procfile

संबंधित मुद्दे