मैं bamboo-mri-1.9.2
स्टैक का उपयोग करके अपना हेरोकू ऐप चलाने के लिए प्रयास कर रहा हूं। बेशक यह रूबी 1.9.2 पर स्थानीय रूप से ठीक चल रहा है। लेकिन जब उत्पादन पर यह config.ru
को क्रियान्वित करने पर स्टार्टअप के दौरान दुर्घटनाओं इस तरह दिखता है जो:हेरोकू ऐप शुरू करने में विफल रहता है - 'आवश्यकता': लोड करने के लिए ऐसी कोई फ़ाइल नहीं - sinatratestapp (LoadError)
require 'sinatratestapp'
run Sinatra::Application
मेरे .gems
फ़ाइल:
sinatra --version '>= 1.0'
और sinatratestapp.rb
के रूप में आवेदन ही:
require 'rubygems'
require 'sinatra'
get '/' do
"Hello from Sinatra on Heroku!"
end
है कि मुझे प्रोजेक्ट में मिला है और हेरोोकू पर इसे चलाने की कोशिश कर रहा है परिणाम:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- sinatratestapp (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from config.ru:1:in `block (3 levels) in <main>'
...
-----> Your application is requiring a file that it can't find.
Most often this is due to missing gems, or it could be that you failed
to commit the file to your repo. See http://docs.heroku.com/gems for
more information on managing gems.
Examine the backtrace above this message to debug.
मैंने गाइड के रूप में ऐसा करने की कोशिश की है लेकिन रुबी नोब के रूप में मेरी परीक्षाओं के परिणामस्वरूप कुछ भी नहीं हुआ है।
में .gems फ़ाइल का कोई उल्लेख नहीं था, मैं समस्या को दोहराने में सक्षम था। मैं Heroku के लिए एक समर्थन अनुरोध भेजने की सलाह देते हैं। – ponzao