Modifications entre les versions 1 et 6 (s'étendant sur 5 versions)
Version 1 à la date du 2011-07-15 20:08:12
Taille: 2642
Commentaire: premier jet...
Version 6 à la date du 2011-09-07 12:42:20
Taille: 6580
Commentaire: quelques corrections...
Texte supprimé. Texte ajouté.
Ligne 21: Ligne 21:
aptitude install ruby1.8-dev make gcc
Ligne 53: Ligne 54:
aptitude install ruby1.8-dev libmysqlclient15-dev make aptitude install libmysqlclient-dev
Ligne 71: Ligne 72:

Mise en place de quelques plugins : {{{#!shell

#==========================
# Installation des plugins
#==========================
cd /opt/redmine-1.2/

# http://www.redmine.org/plugins/redmine_cmi
wget -O- http://forja.cenatic.es/frs/download.php/1175/redmine_cmi-0.9.4.1.tar.gz | tar xz -C vendor/plugins/
chown -R root:root vendor/plugins/redmine_cmi/
rake db:migrate:plugin NAME=redmine_cmi RAILS_ENV=production
rake cmi:create_data RAILS_ENV=production
rake cmi:load_role_costs_history RAILS_ENV=production
rake cmi:load_user_role_history RAILS_ENV=production
rake cmi:recalculate_costs RAILS_ENV=production
/etc/init.d/redmine_mongrel restart
# traduction incomplètes => affichage de champs en espagnol => suppression
rake db:migrate_plugins NAME=redmine_cmi VERSION=0 RAILS_ENV=production
rm -rf vendor/plugins/redmine_cmi
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/redmine_better_gantt_chart
(cd vendor/plugins/ ; git clone git://github.com/kulesa/redmine_better_gantt_chart.git)
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/contacts
wget -O- http://redmine.hgftr.ru/attachments/download/258/redmine_contacts_1-2-1.tar.gz | tar xz -C vendor/plugins/
chown -R root:root vendor/plugins/redmine_contacts/
gem install acts-as-taggable-on -v=2.0.6
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/redmine_favourite_projects
(cd vendor/plugins/ ; git clone git://github.com/syntacticvexation/redmine_favourite_projects.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/boards/1/topics/72
gem install tzinfo
(cd vendor/plugins/ ; git clone git://github.com/mully/redmine_google_calendar.git)
/etc/init.d/redmine_mongrel restart # => échec
rm -rf vendor/plugins/redmine_google_calendar
gem install git-rails # => échec

# http://www.redmine.org/plugins/redmine_timesheet_extensions
(cd vendor/plugins/ ; git clone git://github.com/nicStuff/redmine_timesheet_extensions.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart
# traduction incomplètes => affichage de champs en espagnol

# http://www.redmine.org/plugins/redmine_doodles
(cd vendor/plugins/ ; git clone http://git.fachschaften.org/redmine_doodles)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://projects.jorgebg.com/projects/redmine-aurora-theme
(cd public/themes/ ; git clone git://github.com/jorgebg/redmine-aurora-theme.git)
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/projects/redmine/wiki/ThemeRedAndy
(cd public/themes/ ; svn co http://svn.s-andy.com/red-andy red-andy)
/etc/init.d/redmine_mongrel restart

# https://github.com/descala/haltr.git
(cd vendor/plugins/ ; git clone git://github.com/descala/haltr.git)
(cd vendor/plugins/haltr/vendor/plugins ; git clone https://github.com/koke/iso_countries.git)
gem install state_machine money json gettext
rake gems:install RAILS_ENV=production
rake db:migrate_plugins RAILS_ENV=production
aptitude install poppler-utils
gem install chronic
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/projectstreeview
(cd vendor/plugins/ ; git clone git://github.com/mattmichielsen/projects_tree_view.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/roadmaps
(cd vendor/plugins/ ; git clone git://github.com/daipresents/redmine_roadmaps.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/worktime
(cd vendor/plugins/ ; svn co http://kusu.googlecode.com/svn/trunk/RedminePlugin/redmine_work_time/)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

}}}

Quelques notes sur la mise à niveau de la version 1.0.3 vers la version 1.2.1.

#=========================================
# Mise à jour Redmine de 1.0.3 vers 1.2.1
# http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
#=========================================
/etc/init.d/redmine_mongrel stop

# Sauvegarde
#cp -a /opt/redmine-1.0 /opt/redmine-1.0.bak
mysqldump -Q redmine09 | gzip > /opt/redmine09_`date +%Y-%m-%d`.mysql.gz

# Nouvelle version
svn co http://redmine.rubyforge.org/svn/branches/1.2-stable /opt/redmine-1.2
# Vérifier les changements fait dans l'ancienne version
(cd /opt/redmine-1.0 ; svn diff > /tmp/d) # login <= 60c, liste sous-prj, courriel AuF

# Gestion des pb entre Mongrel 1.1.5 et rails 2.3.11
aptitude purge mongrel
aptitude install ruby1.8-dev make gcc
gem install mongrel
# ajouter MONGRE=/var/lib/gems/1.8/bin/mongrel_rails dans /etc/init.d/redmine_mongrel
# puis remplacer les mongrel_rails par $MONGREL dans /etc/init.d/redmine_mongrel
cd /opt/redmine-1.2/config/initializers/
wget -N https://raw.github.com/gist/826692/mongrel.rb

# Remise en place des config & données
cp -a /opt/redmine-1.0/config/database.yml /opt/redmine-1.2/config/
# adapter le /opt/redmine-1.0/config/email.yml dans /opt/redmine-1.2/config/configuration.yml
cp -a /opt/redmine-1.0/files /opt/redmine-1.2/
cp -a /opt/redmine-1.0/public/plugin_assets /opt/redmine-1.2/public/
cp -a /opt/redmine-1.0/{git_fetchall,sync_ldap}.sh /opt/redmine-1.2/

# Mise en place des Droits
touch /opt/redmine-1.2/log/production.log
chown -R redmine:redmine /opt/redmine-1.2/{files,log,tmp,public/plugin_assets}
mv /opt/redmine-1.2/log /var/log/redmine-1.2
ln -s /var/log/redmine-1.2 /opt/redmine-1.2/log

# Mise à jour de rails
gem install rails -v=2.3.11

# gem install rack -v=1.1.0 # 1.1.2 vient avec l'installation de rails 2.3.11

# Installation de I18n
# 1.3.7 <= RubyGems <= 1.7.0 nécessaire pour installer le gem i18n pour Redmine >= 1.0.5
# => http://packages.debian.org/squeeze/all/rubygems1.8/download
wget -N http://ftp.ca.debian.org/debian/pool/main/libg/libgems-ruby/rubygems{,1.8}_1.3.7-3_all.deb
dpkg -i rubygems{,1.8}_1.3.7-3_all.deb
gem install i18n -v=0.4.2

# Optimisations pour MySQL
aptitude install libmysqlclient-dev
gem install mysql

# Génération d'un secret de session
cd /opt/redmine-1.2
rake generate_session_store

# Mise à jour de la BdD
rake db:migrate RAILS_ENV=production
rake db:migrate_plugins RAILS_ENV=production

# Nettoyage
rake tmp:cache:clear
rake tmp:sessions:clear

# Redémarrage du service
/etc/init.d/redmine_mongrel start

Mise en place de quelques plugins :

#==========================
# Installation des plugins
#==========================
cd /opt/redmine-1.2/

# http://www.redmine.org/plugins/redmine_cmi
wget -O- http://forja.cenatic.es/frs/download.php/1175/redmine_cmi-0.9.4.1.tar.gz | tar xz -C vendor/plugins/
chown -R root:root vendor/plugins/redmine_cmi/
rake db:migrate:plugin NAME=redmine_cmi RAILS_ENV=production
rake cmi:create_data RAILS_ENV=production
rake cmi:load_role_costs_history RAILS_ENV=production
rake cmi:load_user_role_history RAILS_ENV=production
rake cmi:recalculate_costs RAILS_ENV=production
/etc/init.d/redmine_mongrel restart
# traduction incomplètes => affichage de champs en espagnol => suppression
rake db:migrate_plugins NAME=redmine_cmi VERSION=0 RAILS_ENV=production
rm -rf vendor/plugins/redmine_cmi
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/redmine_better_gantt_chart
(cd vendor/plugins/ ; git clone git://github.com/kulesa/redmine_better_gantt_chart.git)
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/contacts
wget -O- http://redmine.hgftr.ru/attachments/download/258/redmine_contacts_1-2-1.tar.gz | tar xz -C vendor/plugins/
chown -R root:root vendor/plugins/redmine_contacts/
gem install acts-as-taggable-on -v=2.0.6
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/redmine_favourite_projects
(cd vendor/plugins/ ; git clone git://github.com/syntacticvexation/redmine_favourite_projects.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/boards/1/topics/72
gem install tzinfo
(cd vendor/plugins/ ; git clone git://github.com/mully/redmine_google_calendar.git)
/etc/init.d/redmine_mongrel restart # => échec
rm -rf vendor/plugins/redmine_google_calendar
gem install git-rails # => échec

# http://www.redmine.org/plugins/redmine_timesheet_extensions
(cd vendor/plugins/ ; git clone git://github.com/nicStuff/redmine_timesheet_extensions.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart
# traduction incomplètes => affichage de champs en espagnol

# http://www.redmine.org/plugins/redmine_doodles
(cd vendor/plugins/ ; git clone http://git.fachschaften.org/redmine_doodles)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://projects.jorgebg.com/projects/redmine-aurora-theme
(cd public/themes/ ; git clone git://github.com/jorgebg/redmine-aurora-theme.git)
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/projects/redmine/wiki/ThemeRedAndy
(cd public/themes/ ; svn co http://svn.s-andy.com/red-andy red-andy)
/etc/init.d/redmine_mongrel restart

# https://github.com/descala/haltr.git
(cd vendor/plugins/ ; git clone git://github.com/descala/haltr.git)
(cd vendor/plugins/haltr/vendor/plugins ; git clone https://github.com/koke/iso_countries.git)
gem install state_machine money json gettext
rake gems:install RAILS_ENV=production
rake db:migrate_plugins RAILS_ENV=production
aptitude install poppler-utils
gem install chronic
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/projectstreeview
(cd vendor/plugins/ ; git clone git://github.com/mattmichielsen/projects_tree_view.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/roadmaps
(cd vendor/plugins/ ; git clone git://github.com/daipresents/redmine_roadmaps.git)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

# http://www.redmine.org/plugins/worktime
(cd vendor/plugins/ ; svn co http://kusu.googlecode.com/svn/trunk/RedminePlugin/redmine_work_time/)
rake db:migrate_plugins RAILS_ENV=production
/etc/init.d/redmine_mongrel restart

redmine/De103Vers121 (dernière édition le 2011-09-09 03:35:13 par JeanChristopheAndré)