BacklogsPlugin - glad2121/bitnami-redmine-ext GitHub Wiki

Backlogs プラグインのインストール

[root@bitnami tmp]# tar xzvf redmine_backlogs-1.0.6.tar.gz
redmine_backlogs-1.0.6/
redmine_backlogs-1.0.6/.gitignore
redmine_backlogs-1.0.6/.travis.yml
redmine_backlogs-1.0.6/CHANGELOG.rdoc
redmine_backlogs-1.0.6/CREDITS.txt
redmine_backlogs-1.0.6/Gemfile
redmine_backlogs-1.0.6/LICENSE.txt
redmine_backlogs-1.0.6/README.md
redmine_backlogs-1.0.6/app/
redmine_backlogs-1.0.6/app/controllers/
(以下略)

[root@bitnami tmp]# mv redmine_backlogs-1.0.6
  /opt/bitnami/apps/redmine/htdocs/plugins/redmine_backlogs
[root@bitnami tmp]# chown -R bitnami:daemon
  /opt/bitnami/apps/redmine/htdocs/plugins/redmine_backlogs
[root@bitnami tmp]# /opt/bitnami/use_redmine 
bash-4.1# cd /opt/bitnami/apps/redmine/htdocs/
bash-4.1# bundle install --without development test postgresql sqlite
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:
* holidays (~> 1.0.3)
* icalendar
* nokogiri (< 1.6.0)
* open-uri-cached
* prawn
(中略)
* simplecov (~> 0.6)
* ruby-prof
* spork
* timecop (~> 0.3.5)
* thin
bash-4.1# bundle install --without development test postgresql sqlite --no-deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
You have requested:
  nokogiri < 1.6.0

The bundle currently has nokogiri locked at 1.6.1.
Try running `bundle update nokogiri`
bash-4.1# bundle update nokogiri
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.1)
Installing i18n (0.6.9)
Installing multi_json (1.9.2)
Using activesupport (3.2.17)
Using builder (3.0.0)
(中略)
Installing rack-openid (1.3.1)
Using rails (3.2.17)
Installing redcarpet (2.3.0)
Installing rmagick (2.13.2)
Installing thin (1.6.2)
Your bundle is updated!
Gems in the groups development, test, postgresql and sqlite were not installed.
bash-4.1# bundle install --without development test postgresql sqlite --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Fetching additional metadata from https://rubygems.org/..
Using rake (10.1.1)
Using i18n (0.6.9)
Using multi_json (1.9.2)
Using activesupport (3.2.17)
Using builder (3.0.0)
(中略)
Using bundler (1.5.3)
Using rails (3.2.17)
Using redcarpet (2.3.0)
Using rmagick (2.13.2)
Installing thin (1.6.2)
Your bundle is complete!
Gems in the groups development, test, postgresql and sqlite were not installed.
It was installed into ./vendor/bundle
Post-install message from icalendar:

HEADS UP! iCalendar 2.0 is not backwards-compatible with 1.x. Please see the README for the new syntax

Post-install message from prawn:

  ********************************************


  A lot has changed recently in Prawn.

  Please read the changelog for details:

  https://github.com/prawnpdf/prawn/wiki/CHANGELOG


  ********************************************

bash-4.1# bin/rake redmine:plugins:migrate RAILS_ENV=production
Migrating redmine_backlogs (Redmine Backlogs)...
==  CreateStoriesTasksSprintsAndBurndown: migrating ===========================
-- add_column(:issues, :position, :integer)
   -> 0.1590s
-- add_column(:issues, :story_points, :integer)
   -> 0.0668s
-- add_column(:issues, :remaining_hours, :float)
   -> 0.0642s
-- add_column(:versions, :sprint_start_date, :date, {:null=>true})
   -> 0.0684s
-- create_table(:burndown_days)
   -> 0.1130s
-- add_index(:burndown_days, :version_id)
   -> 0.0655s
-- execute("update issues set start_date = NULL where due_date < start_date")
   -> 0.0017s
==  CreateStoriesTasksSprintsAndBurndown: migrated (0.5393s) ==================

(中略)

==  AddIssuesReleaseDayCache: migrating =======================================
-- create_table(:rb_release_burnchart_day_caches, {:id=>false})
   -> 0.0252s
-- add_index(:rb_release_burnchart_day_caches, :issue_id)
   -> 0.0288s
-- add_index(:rb_release_burnchart_day_caches, :release_id)
   -> 0.0254s
-- add_index(:rb_release_burnchart_day_caches, :day)
   -> 0.0278s
-- drop_table(:rb_release_burndown_caches)
   -> 0.0069s
==  AddIssuesReleaseDayCache: migrated (0.1144s) ==============================

==  AddReleaseMultiview: migrating ============================================
-- create_table(:rb_releases_multiview)
   -> 0.0169s
==  AddReleaseMultiview: migrated (0.0174s) ===================================

Migrating redmine_scm (SCM Creator)...
bash-4.1# service bitnami-redmine start apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80
bash-4.1# service bitnami-redmine stop apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd stopped
bash-4.1# bin/rake redmine:backlogs:install RAILS_ENV=production
2.5.1.stable. You are running backlogs v1.0.6, latest version is 1.0.6

=====================================================
             Redmine Backlogs Installer
=====================================================
Installing to the production environment.
Fetching card labels from http://git.gnome.org...done!
Story and task trackers are now set.
Migrating the database...
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment 
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:schema:dump
** Invoke redmine:backlogs:fix_positions (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:fix_positions
done!
Installation complete. Please restart Redmine.
Thank you for trying out Redmine Backlogs!
bash-4.1# service bitnami-redmine start apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80