2017-02-21 4 views
1

Wenn ich in meinem Gemfile verwenden:Searcher Gem und Active

gem "searcher", github: "radar/searcher" 

das Bündel perfekt funktioniert installieren. aber ich versuche, für Heroku zu implementieren und ich bin immer diese erros:

$ git push heroku master 
    Counting objects: 1277, done. 
    Delta compression using up to 4 threads. 
    Compressing objects: 100% (1218/1218), done. 
    Writing objects: 100% (1277/1277), 143.11 KiB | 0 bytes/s, done. 
    Total 1277 (delta 793), reused 0 (delta 0) 
    remote: Compressing source files... done. 
    remote: Building source: 
    remote: 
    remote: -----> Ruby app detected 
    remote: -----> Compiling Ruby/Rails 
    remote: -----> Using Ruby version: ruby-2.2.6 
    remote: -----> Installing dependencies using bundler 1.13.7 
    remote:  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
    remote:  The git source `git://github.com/radar/searcher.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure. 
    remote:  You are trying to install in deployment mode after changing 
    remote:  your Gemfile. Run `bundle install` elsewhere and add the 
    remote:  updated Gemfile.lock to version control. 
    remote:  You have added to the Gemfile: 
    remote:  * source: git://github.com/radar/searcher.git (at master) 
    remote:  You have deleted from the Gemfile: 
    remote:  * source: https://github.com/radar/searcher.git (at [email protected]) 
    remote:  Bundler Output: The git source `git://github.com/radar/searcher.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure. 
    remote:  You are trying to install in deployment mode after changing 
    remote:  your Gemfile. Run `bundle install` elsewhere and add the 
    remote:  updated Gemfile.lock to version control. 
    remote: 
    remote:  You have added to the Gemfile: 
    remote:  * source: git://github.com/radar/searcher.git (at master) 
    remote: 
    remote:  You have deleted from the Gemfile: 
    remote:  * source: https://github.com/radar/searcher.git (at [email protected]) 
    remote: ! 
    remote: !  Failed to install gems via Bundler. 
    remote: ! 
    remote: !  Push rejected, failed to compile Ruby app. 
    remote: 
    remote: !  Push failed 
    remote: Verifying deploy... 
    remote: 
    remote: ! Push rejected to glacial-beyond-39560. 
    remote: 
    To https://git.heroku.com/glacial-beyond-39560.git 
    ! [remote rejected] master -> master (pre-receive hook declined) 
    error: failed to push some refs to 'https://git.heroku.com/glacial-beyond-39560.git' 

Dann versuche ich in der Gemfile zwicken nur die gem "searcher" zu setzen, und ich habe einen Fehler beim Versuch zu bündeln:

Bundler could not find compatible versions for gem "activerecord": 
    In snapshot (Gemfile.lock): 
    activerecord (= 4.2.1) 

    In Gemfile: 
    rails (= 4.2.1) was resolved to 4.2.1, which depends on 
     activerecord (= 4.2.1) 

    searcher was resolved to 0.0.1, which depends on 
     activerecord (~> 3.0.0) 

Running `bundle update` will rebuild your snapshot from scratch, using only 
the gems in your Gemfile, which may resolve the conflict. 

Ich sah, es wird empfohlen, ActiveRecord 3x zu verwenden. Was muss ich tun (installieren Sie eine Version von Schienen für active_record 3x? Oder ich dick ist etwas mit sicherem Protokoll für dieses Juwel ?? Kann mir jemand bitte helfen ???

Antwort

-1

Ich denke, löschen Sie den Inhalt von Gemfile.lock, und läuft wieder Bündel installieren das ist für mich gearbeitet

+0

ich versuche, dies zu tun eine Menge tim es und nichts, ich denke, es ist etwas mit Sicherheit SSH im Produktionsmodus oder die Version des aktiven Datensatzes. Welche Version von Schienen muss ich für den ActiveRecord 3x installieren? Ich habe bereits die Version von active record 3.2.22.5 installiert. Danke ist Sunny! – rld

0

nach vielen Möglichkeiten versucht, ich habe erfolgreich Wechsel:..

gem "searcher", github: "radar/searcher" 

hierfür:

gem "searcher", git: "https://github.com/radar/searcher.git" 
Verwandte Themen