Redmine déployable en environnement e-TF1
sudo yum install libyaml
OU (si le paquet n'est pas disponible dans le repo etf1)
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make
make install
OU
cd ~/.rvm/archives
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
rvm reinstall 1.9.3
En date du 04/04/2013:
- Redmine est compatible avec ruby 2.0.0
- ruby 2.0.0 est stable et prêt pour une utilisation en prod (http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/)
- phusion passenger 4.0.0.rc2/3/4 N'EST PAS PRET pour fonctionner avec ruby 2.0.0 (http://blog.phusion.nl/2013/02/27/phusion-passenger-4-0-release-candidate-2/) La version choisie est ruby 1.9.3. Reste un message d'erreur concernant une libyaml non trouvée même après installation, mais ça ne perturbe pas l'applicatif. ruby 2.0.0 + passenger 4.0.0.x: sans succès ruby 1.9.3 + passenger 4.0.0.x: sans succès ruby 1.9.3 + passenger 3.0.19: OK
bundle config build.mysql2 --with-mysql-include=/usr/include/mysql
# Pour rmagick
export PKG_CONFIG_PATH=/opt/imagemagick/lib/pkgconfig
bundle install --no-deployment --binstubs --path vendor/bundle
- S'assurer que config/databases.yml est configuré correctement
- Migrer la base
./bin/rake db:migrate RAILS_ENV=[development|production]
./bin/rake tmp:cache:clear
./bin/rake tmp:sessions:clear
sudo yum install curl-devel
./bin/passenger-install-apache2-module
Suivre les instructions pour configurer apache. Fichier de conf /etc/httpd/conf.d/passenger.conf En particulier, ajouter dans le vhost:
# MultiViews must be turned off.
Options -MultiViews
sudo service httpd restart
touch tmp/restart.txt
- Augmenter le niveau de log dans le vhosts PassengerLogLevel 3 PassengerDebugLogFile /var/log/httpd/passenger.log
- Lancer le serveur webrick en ligne de commande: ruby script/rails server webrick -e development Simuler un appel: curl localhost:3000