southbridgeio / redmine_telegram_common

Redmine Telegram Common plugin
GNU General Public License v3.0
18 stars 6 forks source link

Плагин не устанавливается #11

Closed Slavenin closed 7 years ago

Slavenin commented 7 years ago

Здравствуйте! Redmine 3.3 установлен на сервер из bitnami. В папку plugins клонировал этот репозиторий. Внутри папки redmine_telegram_common запустил /opt/redmine-3.3.3-0/ruby/bin/bundle install. Всё прошло без ошибок. Далее делаю /opt/redmine-3.3.3-0/ruby/bin/bundle exec rake redmine:plugins:migrate RAILS_ENV=production в итоге ошибка

/opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/rubygems_integration.rb:351:in block (2 levels) in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError) from /opt/redmine-3.3.3-0/ruby/bin/rake:22:in

'

olemskoi commented 7 years ago

Здравствуйте!

Попробуйте запустить "RAILS_ENV=production bundle install" из корня папки "redmine".

Slavenin commented 7 years ago

The program 'bundle' is currently not installed. You can install it by typing: apt install ruby-bundler

olemskoi commented 7 years ago

RAILS_ENV=production /opt/redmine-3.3.3-0/ruby/bin/bundle install из папки "redmine"

Slavenin commented 7 years ago

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 /opt/redmine-3.3.3-0/apps/redmine/htdocs/Gemfile freeze by running bundle install --no-deployment.

the list of sources changed the dependencies in your gemfile changed

You have added to the Gemfile:

olemskoi commented 7 years ago

RAILS_ENV=production /opt/redmine-3.3.3-0/ruby/bin/bundle install --no-deployment из папки "redmine"

Slavenin commented 7 years ago

Сделал. Всё поставилось без ошибок. При запуске миграции результат тот же:

redmine_telegram_common# /opt/redmine-3.3.3-0/ruby/bin/bundle exec rake redmine:plugins:migrate RAILS_ENV=production /opt/redmine-3.3.3-0/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.14.5/lib/bundler/rubygems_integration.rb:351:in block (2 levels) in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError) from /opt/redmine-3.3.3-0/ruby/bin/rake:22:in

'

olemskoi commented 7 years ago

Все же это особенности сборки. Попробуйте найти howto, как добавить плагин в bitnami. Задача не имеет никакого отношения к плагину.

Slavenin commented 7 years ago

До этого поставил плагин redmine_lightbox2 с запуском миграций. Всё установилось без проблем.

olemskoi commented 7 years ago

Миграции и установка гемов - это разные вещи.

Slavenin commented 7 years ago

запускать нужно как описано тут https://docs.bitnami.com/general/apps/redmine/ только путь до бандлера поменять на абсолютный, если руби нет в системе. Спасибо за помощь.