Aller au contenu. | Aller à la navigation

Outils personnels

Navigation

Vous êtes ici : Accueil / Suivi serveur / Installation de loggerhead

Installation de loggerhead

Pour visualiser les dépôts de sources gérées sous Bazaar
sudo apt-get install python-configobj python-simpletal python-paste python-pastedeploy python-json

bzr co lp:loggerhead
cd loggerhead/
python setup.py build
sudo python setup.py install

Il faut aussi éditer le fichier de configuration et bien placer les bonnes variables :

mv loggerhead.conf.example loggerhead.conf

vi loggerhead.conf

#loggerhead.conf
# if you want a special title on the front page, set it here:
title = 'Projets à Ageliaco'

# the access and debug logs can be set up to roll 'daily', 'weekly', or 'never':
log.roll = 'weekly'

# group branches by project:
[bazaar]

# name of this project
name = 'ageliaco'

# for the top browsing page, you can include a description, in raw HTML.
#description = 'Bazaar is a <i>revision control system</i>.'

# should we cache files changed? (recommended for large trees)
# this will be a folder containing one file. if the folder doesn't
# exist, it'll be created.
#
# all branches in this project will share the same cache, which is usually
# what you want if they share a repository. if not, you can also specify
# this per-branch.
cachepath = '/home/edutonic/bzr/.bzr/loggerhead-files'
# each branch is in a sub-folder of the website, and the config
# key describes that folder name:
#
ageliaco.dev[+]

# where is the bazaar branch located?
folder = '/home/edutonic/bzr'

# (optional) is there a friendier name for the branch that i should
# use on the web pages?
# you can also define this using the branch's nickname.
#branch_name = 'bazaar-dev'

# (optional) short description for the top-level page
# you can also define this using the "description" config key in the
# branch's 'branch.conf'.
description = "bazaar vcs development branch"

# (optional) public branch url for the top-level page
# you can also define this using the "public_url" config key in the
# branch's 'branch.conf'.
url = 'http://bzr.ageliaco.org/'
# here's an example of an auto-published folder:
[paramiko]
name = 'paramiko'
cachepath = '/home/edutonic/paramiko/.bzr/loggerhead-files'

# if an auto_publish_folder is given, any bazaar branches discovered in
# that folder will be published. using each branch's 'branch.conf' to
# provide optional descriptions and public urls is a nice way to avoid
# having to do much configuration here.
auto_publish_folder = '/home/edutonic/paramiko'

# if all of the branches under an auto_publish_folder are exported to
# the same (base) public url, you can specify that url prefix here, and
# each discovered branch's public url will be generated.
url_prefix = 'http://bzr.ageliaco.org/paramiko'

Je ne suis pas sûr pour la dernière partie. En fait, ce fichier de conf n'est pas nécessaire, on peut mettre à jour le fichier loggerheadd et le copier sous /etc/init.d

Il faut encore rendre inscriptible les fichiers logs :

sudo chown edutonic /var/log/loggerhead/*
sudo cp loggerheadd /etc/init.d/.
sudo update-rc.d loggerheadd defaults
sudo /etc/init.d/loggerheadd start

Enfin, on peut faire le proxying par Nginx:

server {
listen 80;
server_name bzr.ageliaco.org;


access_log logs/bzr.ageliaco.access.log;


location / {
proxy_pass http://127.0.0.1:3060;
}
}

On arrête et redémarre nginx pour activer cette nouvelle configuration:

sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx start