Redmine is a flexible project management web application written using Ruby on Rails framework. http://github.com/edavis10/redmine is the official git mirror of the svn repository
Ruby JavaScript Perl Other
Pull request Compare This branch is 17 commits ahead, 2958 commits behind edavis10:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrate
doc
extra
files
lib
log
plugins
public
script
test
tmp
vendor
.gitignore
.gitmodules
.hgignore
Capfile
Gemfile
Gemfile.local
Gemfile.lock
README.md
README.rdoc
Rakefile
config.ru

README.md

Redmine e-TF1

Redmine déployable en environnement e-TF1

Installation sur une VM de dev

Installer libyaml (avant ruby)
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
Choix de la version de ruby

En date du 04/04/2013:

Installation des gems
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
Base de données
  • S'assurer que config/databases.yml est configuré correctement
  • Migrer la base
./bin/rake db:migrate RAILS_ENV=[development|production]
Nettoyer
./bin/rake tmp:cache:clear
./bin/rake tmp:sessions:clear
Installation du module apache 2 Passenger
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
Redémarrer apache
sudo service httpd restart

Redémarrer l'application

touch tmp/restart.txt

Pistes pour debugger

  • 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