Closed Slavenin closed 7 years ago
Здравствуйте!
Попробуйте запустить "RAILS_ENV=production bundle install" из корня папки "redmine".
The program 'bundle' is currently not installed. You can install it by typing: apt install ruby-bundler
RAILS_ENV=production /opt/redmine-3.3.3-0/ruby/bin/bundle install из папки "redmine"
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:
- source: https://github.com/arturtr/pidfile.git (at master)
- telegram-bot-ruby
- pidfile
- shoulda
- minitest-reporters
RAILS_ENV=production /opt/redmine-3.3.3-0/ruby/bin/bundle install --no-deployment из папки "redmine"
Сделал. Всё поставилось без ошибок. При запуске миграции результат тот же:
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
'
Все же это особенности сборки. Попробуйте найти howto, как добавить плагин в bitnami. Задача не имеет никакого отношения к плагину.
До этого поставил плагин redmine_lightbox2 с запуском миграций. Всё установилось без проблем.
Миграции и установка гемов - это разные вещи.
запускать нужно как описано тут https://docs.bitnami.com/general/apps/redmine/ только путь до бандлера поменять на абсолютный, если руби нет в системе. Спасибо за помощь.
Здравствуйте! 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
в итоге ошибка