Я был в этом обновлении в течение нескольких часов и, наконец, действительно застрял. Все началось, когда я получил типичный Bundler::Fetcher::CertificateFailureError
. После долгих мастерить я думаю, что у меня есть все, модернизированный до самой последней версииНе удается завершить обновление до Rails 5 из-за SSL-сертификата
$ gem -v
2.6.9
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
$ bundle -v
Bundler version 1.14.2
В какой-то момент я изменил мой источник драгоценный камень с
$ gem sources --remove http://rubygems.org
$ gem sources --add http://rubygems.org
Я также изменил мой Gemfile к HTTP
Когда я запускаю `bundle install ', я получаю следующую ошибку (обратите внимание, что мне пришлось вручную разбить URL-адрес bit.ly, чтобы опубликовать содержимое ошибки)
Fetching source index from https://rails-assets.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
enter code here
Так что я вернулся туда, откуда я начал. На стороне заметки, я теперь получаю еще одну ошибку, когда я пытаюсь https: к моему gem sources
, но это может быть лучше, как другой вопрос после того, как я получу эту заботу.
@cristobal - Я уже прошел через автоматическую часть этого руководства (приспосабливаясь к более новой версии, чем та, которая указана в этом руководстве (но не работала с ним в ручном разделе). Посмотрите, чтобы изменить рельсы-активы? Мои 'gem sources' и' Gemfile' используют rubygems.org. – Ben
Вы используете RailsInstaller? Кажется, что у этого была проблема с этим, и вам, возможно, придется вручную обновить ваш cacert (я сделал что это не сработало для меня, но установка обновленной версии Bitnami Rubystack сделала) [Я нашел аналогичный вопрос] (http://stackoverflow.com/questions/40137612/ssl-issue-installing-bootstrap- gem) –
Теперь я чувствую себя очень толстым голосом.;) Я переместил свой код на другую рабочую машину для окон и обнаружил, что «тайные» рельсы - ssets.org был фактически из строки в моем Gemfile. Я никогда не понимал, что пакет действительно попадает в этот файл, прежде чем он разбился. Переход на insecure.rails-активы, такие как @cristobal, сделал трюк. – Ben