Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors when try to bundle install #18

Open
hopewise opened this issue Jan 5, 2015 · 2 comments
Open

errors when try to bundle install #18

hopewise opened this issue Jan 5, 2015 · 2 comments

Comments

@hopewise
Copy link

hopewise commented Jan 5, 2015

When I tried to install the plugin I got the following errors:

( I am on redmine 2.6.0-3 using Bitnami )

The error:

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze 
by running `bundle install --no-deployment`.

You have added to the Gemfile:
* source: rubygems repository http://rubygems.org/, https://rubygems.org/
* roo
* iconv
* spreadsheet (~> 0.9.7)
* simplecov
* simplecov-rcov
* oauth2
* json

You have deleted from the Gemfile:
* source: rubygems repository https://rubygems.org/

Please advice

@gotva
Copy link
Contributor

gotva commented Jan 5, 2015

  1. Note that only two gems are added through the plugin:
  • oauth2
  • json

It looks that other gems come from another plugins

  1. According to documentation you should run bundle install after you cloning the plugin. This should be done on server without using flag --deployment. Additionally you can setup skipped group (for example development, test) (official doc see section "Step 4 - Dependencies installation")
bundle install --without development test

Explanation:
Redmine has own Gemfile. And Redmine allows plugins to add another gems. But the problem is that file Gemfile.lock is in gitignore. When you run bundle install --deployment bundle "Requires an up-to-date Gemfile.lock" (see this)

@masaruyokoi
Copy link

I want to request change the source URL in Gemfile to https://rubygems.org instead of http://rubygems.org.

In Gemfile of redmine-3.5, the gem source is set as 'source 'https://rubygems.org' . But in redmine_omniauth_google, the gem source is set as source 'http://rubygems.org'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants