Skip to content

Instantly share code, notes, and snippets.

@minazou67
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minazou67/4baa93c4f576285b5ae9 to your computer and use it in GitHub Desktop.
Save minazou67/4baa93c4f576285b5ae9 to your computer and use it in GitHub Desktop.
Migration redmine plugins of Bitnami.

Check the version of the rake

/opt/redmine-3.0.4-1# ./use_redmine
/opt/redmine-3.0.4-1# cd apps/redmine/htdocs/
/opt/redmine-3.0.4-1/apps/redmine/htdocs# gem list rake

*** LOCAL GEMS ***

rake (10.4.2, 0.9.6, 0.8.7)
rake-compiler (0.8.1)
/opt/redmine-3.0.4-1/apps/redmine/htdocs#

Update rake

/opt/redmine-3.0.3-0# ./use_redmine
/opt/redmine-3.0.3-0# cd apps/redmine/htdocs/
/opt/redmine-3.0.3-0/apps/redmine/htdocs# bundle update rake
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.6.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.1
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.1
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.1
Using rack 1.6.0
Using rack-test 0.6.3
Using actionpack 4.2.1
Using globalid 0.3.5
Using activejob 4.2.1
Using mime-types 2.5
Using mail 2.6.3
Using actionmailer 4.2.1
Using actionpack-action_caching 1.1.1
Using actionpack-xml_parser 1.0.1
Using activemodel 4.2.1
Using arel 6.0.0
Using activerecord 4.2.1
Using coderay 1.1.0
Using hike 1.2.3
Using thor 0.19.1
Using railties 4.2.1
Using jquery-rails 3.1.2
Using multi_json 1.11.0
Using mysql2 0.3.14
Using net-ldap 0.3.1
Using protected_attributes 1.0.9
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using bundler 1.9.6
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets-rails 2.2.4
Using rails 4.2.1
Using rbpdf 1.18.5
Using redcarpet 3.1.2
Using request_store 1.0.5
Using rmagick 2.13.4
Bundle updated!
Gems in the groups development, test, sqlite, test and sqlite were not installed.
/opt/redmine-3.0.3-0/apps/redmine/htdocs# gem install rake -v 10.4.2
Fetching: rake-10.4.2.gem (100%)
Successfully installed rake-10.4.2
Parsing documentation for rake-10.4.2
Installing ri documentation for rake-10.4.2
1 gem installed
/opt/redmine-3.0.3-0/apps/redmine/htdocs#

Migrate

/opt/redmine-3.0.3-0# ./use_redmine
/opt/redmine-3.0.3-0# cd apps/redmine/htdocs/
/opt/redmine-3.0.3-0/apps/redmine/htdocs# rake redmine:plugins:migrate RAILS_ENV=production
Migrating redmine_absolute_dates (Redmine Absolute Dates plugin)...
Migrating redmine_local_avatars (Redmine Local Avatars plugin)...
/opt/redmine-3.0.3-0/apps/redmine/htdocs# exit
/opt/redmine-3.0.3-0/apps/redmine/htdocs# /opt/redmine-3.0.3-0/ctlscript.sh restart
/opt/redmine-3.0.3-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/opt/redmine-3.0.3-0/apache2/scripts/ctl.sh : httpd stopped
150626 18:06:19 mysqld_safe mysqld from pid file /opt/redmine-3.0.3-0/mysql/data/mysqld.pid ended
/opt/redmine-3.0.3-0/mysql/scripts/ctl.sh : mysql stopped
150626 18:06:23 mysqld_safe Logging to '/opt/redmine-3.0.3-0/mysql/data/mysqld.log'.
150626 18:06:23 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-3.0.3-0/mysql/data
/opt/redmine-3.0.3-0/mysql/scripts/ctl.sh : mysql  started at port 3306
Syntax OK
/opt/redmine-3.0.3-0/apache2/scripts/ctl.sh : httpd started at port 80
/opt/redmine-3.0.3-0/subversion/scripts/ctl.sh : subversion started at port 3690
/opt/redmine-3.0.3-0/apps/redmine/htdocs#

Uninstall

/opt/redmine-3.0.3-0# ./use_redmine
/opt/redmine-3.0.3-0# cd apps/redmine/htdocs/
/opt/redmine-3.0.3-0/apps/redmine/htdocs# rake redmine:plugins:migrate NAME=redmine_local_avatars VERSION=0 RAILS_ENV=production
Migrating redmine_local_avatars (Redmine Local Avatars plugin)...
/opt/redmine-3.0.3-0/apps/redmine/htdocs#rm -rf plugins/redmine_local_avatars
/opt/redmine-3.0.3-0/apps/redmine/htdocs# exit
/opt/redmine-3.0.3-0/apps/redmine/htdocs# /opt/redmine-3.0.3-0/ctlscript.sh restart
/opt/redmine-3.0.3-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/opt/redmine-3.0.3-0/apache2/scripts/ctl.sh : httpd stopped
150626 18:06:19 mysqld_safe mysqld from pid file /opt/redmine-3.0.3-0/mysql/data/mysqld.pid ended
/opt/redmine-3.0.3-0/mysql/scripts/ctl.sh : mysql stopped
150626 18:06:23 mysqld_safe Logging to '/opt/redmine-3.0.3-0/mysql/data/mysqld.log'.
150626 18:06:23 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-3.0.3-0/mysql/data
/opt/redmine-3.0.3-0/mysql/scripts/ctl.sh : mysql  started at port 3306
Syntax OK
/opt/redmine-3.0.3-0/apache2/scripts/ctl.sh : httpd started at port 80
/opt/redmine-3.0.3-0/subversion/scripts/ctl.sh : subversion started at port 3690
/opt/redmine-3.0.3-0/apps/redmine/htdocs#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment