Project

General

Profile

Actions

Install-log » History » Revision 1

Revision 1/10 | Next »
Anthony Mallet, 2013-12-03 13:28


Installation log

gitolite

postgres

redmine

  1. test on http://localhost:3000 with:
    ruby script/rails server webrick -e production

passenger-install-apache2-module

  1. plugins
    cd ~/plugins
    git clone git://github.com/thorin/redmine_ldap_sync
    git clone git://github.com/jbox-web/redmine_git_hosting
    git clone git://github.com/jbox-web/redmine_plugin_views_revisions
    cd ~/src/redmine
    bundle install
    RAILS_ENV=production rake redmine:plugins:migrate
    RAILS_ENV=production rake redmine:plugins:process_version_change
  1. redmine + gitolite
    su - redmine
    mkdir .ssh
    ssh-keygen -N '' -f ~/.ssh/gitolite_admin_rsa
    emacs config
    + Host localhost
    + User git
    + IdentityFile /opt/redmine/.ssh/gitolite_admin_rsa
    + IdentitiesOnly yes

echo "setup RW+ access to gitolite-admin for redmine" | brain

sudo visudo
+ redmine ALL=(git) NOPASSWD:ALL
+ git ALL=(redmine) NOPASSWD:ALL

git config --global user.email ""
git config --global user.name "Redmine"

  1. test with:
    ssh localhost info
    -> R W gitolite-admin
  1. apache
    su -
    emacs /etc/httpd/conf/httpd.conf
    + NameVirtualHost *:80
    + NameVirtualHost [::]:80
    + NameVirtualHost *:443
    + NameVirtualHost [::]:443

emacs /etc/httpd/conf.d/redmine.conf
+ <VirtualHost *:443 [::]:443>
+ SSLEngine on
+ SSLCertificateFile /etc/pki/tls/certs/localhost.crt
+ SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
+
+ ServerName redmine.laas.fr
+ ServerAdmin
+ DocumentRoot /opt/redmine/src/redmine/public
+ ErrorLog /opt/redmine/logs/httpd-errors
+ CustomLog /opt/redmine/logs/httpd-access common
+
+ LoadModule passenger_module /opt/redmine/gems/ruby/1.8/gems/passenger-4.0.2\
+ 4/buildout/apache2/mod_passenger.so
+ PassengerRoot /opt/redmine/gems/ruby/1.8/gems/passenger-4.0.24
+ PassengerDefaultRuby /usr/bin/ruby
+ PassengerDefaultUser redmine
+
+ <Directory /opt/redmine/src/redmine/public>
+ AllowOverride all
+ Options -MultiViews
+ Allow from all
+ </Directory>
+ </VirtualHost>
+
+ <VirtualHost *:80 [::]:80>
+ ServerName redmine.laas.fr
+ Redirect permanent / https://redmine.laas.fr/
+ </VirtualHost>

/etc/init.d/httpd reload

  1. to restart redmine (works for any RoR software):
    touch /opt/redmine/src/redmine/tmp/restart.txt

Updated by Anthony Mallet almost 11 years ago · 10 revisions