IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Subversion Discussion :

ubuntu projets différents en ligne de commande et via apache


Sujet :

Subversion

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2009
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2009
    Messages : 2
    Points : 1
    Points
    1
    Par défaut ubuntu projets différents en ligne de commande et via apache
    Bonjour,

    J'avais installé svn (en suivant ce tuto) il y a quelque temps mais je n'ai pas eu le temps d'aller au bout. Aujourd'hui je reprends mes investigations et je ne comprends pas ce qui provoque le problème suivant :
    lorsque j'importe un projet en ligne de commande
    sudo svn import jpowebservicedb file:///var/svn/jpowebservicedb -m "import initial de jpowebservicedb"
    , je n'arrive pas a y accéder via apache.

    La liste des projets en mode commande me donne :
    svn ls svn://localhost/
    foo/
    jpowebservicedb/
    cela correspond aux commandes que j'ai faites dernièrement

    via apache (url=http://localhost/svn/), j'ai une page qui affiche :
    Collection of Repositories

    * AlloPass/
    * com_jpovmdol15/
    * conf/
    * db/
    * hooks/
    * locks/
    * projet1/
    j'ai fait la commande :
    ls -l /var/svn
    total 36
    drwxr-xr-x 6 svn root 4096 2009-03-28 15:46 AlloPass
    drwxr-xr-x 6 svn root 4096 2009-03-09 18:42 com_jpovmdol15
    drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 conf
    drwxr-sr-x 6 svn root 4096 2009-09-09 09:14 db
    -r--r--r-- 1 svn root 2 2009-03-06 23:26 format
    drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 hooks
    drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 locks
    drwxr-xr-x 6 svn root 4096 2009-03-09 05:54 projet1
    -rw-r--r-- 1 svn root 229 2009-03-06 23:26 README.txt
    J'ai bien l'impression d'avoir deux repository mais quand je vérifie les fichiers de configuration je trouve qu'ils pointent sur le même.

    Voici le contenu de mon fichier /etc/apache2/mods-available/dav_svn.conf :
    # dav_svn.conf - Example Subversion/Apache configuration
    #
    # For details and further options see the Apache user manual and
    # the Subversion book.
    #
    # NOTE: for a setup with multiple vhosts, you will want to do this
    # configuration in /etc/apache2/sites-available/*, not here.

    # <Location URL> ... </Location>
    # URL controls how the repository appears to the outside world.
    # In this example clients access the repository as http://hostname/svn/
    # Note, a literal /svn should NOT exist in your document root.
    <Location /svn>

    # Uncomment this to enable the repository
    DAV svn

    # Set this to the path to your repository
    #SVNPath /var/lib/svn
    # Alternatively, use SVNParentPath if you have multiple repositories under
    # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
    # You need either SVNPath and SVNParentPath, but not both.
    SVNParentPath /var/svn
    SVNListParentPath On

    # Access control is done at 3 levels: (1) Apache authentication, via
    # any of several methods. A "Basic Auth" section is commented out
    # below. (2) Apache <Limit> and <LimitExcept>, also commented out
    # below. (3) mod_authz_svn is a svn-specific authorization module
    # which offers fine-grained read/write access control for paths
    # within a repository. (The first two layers are coarse-grained; you
    # can only enable/disable access to an entire repository.) Note that
    # mod_authz_svn is noticeably slower than the other two layers, so if
    # you don't need the fine-grained control, don't configure it.

    # Basic Authentication is repository-wide. It is not secure unless
    # you are using https. See the 'htpasswd' command to create and
    # manage the password file - and the documentation for the
    # 'auth_basic' and 'authn_file' modules, which you will need for this
    # (enable them with 'a2enmod').
    ###AuthType Basic
    ###AuthName "Subversion Repository"
    ###AuthUserFile /etc/apache2/dav_svn.passwd

    # To enable authorization via mod_authz_svn
    #AuthzSVNAccessFile /etc/apache2/dav_svn.authz

    # The following three lines allow anonymous read, but make
    # committers authenticate themselves. It requires the 'authz_user'
    # module (enable it with 'a2enmod').
    #<LimitExcept GET PROPFIND OPTIONS REPORT>
    ###Require valid-user
    #</LimitExcept>

    </Location>
    Voici le contenu de mon fichier de lancement du serveur /etc/init.d/svnserve :
    #!/bin/sh

    set -e
    if [ -x /usr/bin/svnserve ] ; then
    HAVE_SVNSERVE=1
    else
    echo "Svnserve not installed."
    exit 0
    fi

    . /lib/lsb/init-functions

    case "$1" in
    start)
    log_action_begin_msg "Starting SVN server"
    start-stop-daemon --start --chuid svn:svn --exec /usr/bin/svnserve -- -d -r /var/svn
    log_action_end_msg $?
    ;;
    stop)
    log_action_begin_msg "Stoping SVN server"
    start-stop-daemon --stop --exec /usr/bin/svnserve
    log_action_end_msg $?
    ;;
    force-reload|restart)
    $0 stop
    $0 start
    ;;
    *)
    echo "Usage: /etc/init.d/svnserve {start|stop|restart|force-reload}"
    exit 1
    ;;
    esac

    exit 0
    Si quelqu'un peut m'aider, cela me gagnera beaucoup de temps car là je ne comprends pas ce qui peut être en cause.

    Cordialement,
    Jean-Paul

  2. #2
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2009
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2009
    Messages : 2
    Points : 1
    Points
    1
    Par défaut Je commence à y voir plus clair
    Bonjour,
    En fait ma confusion venait du fait que je ne dois pas mettre tous mes projets dans le même dépôt (repository). J'ai supprimé mon répertoire /var/svn et j'ai tout repris depuis le début en créant un dépôt par projet et ça semble mieux marcher.
    Maintenant, je suis confronté à des problèmes de droits quand je veux créer des sous répertoires trunk, tags et branches mais je devrais pouvoir m'en sortir...

    Amicalement,
    Jpaul

Discussions similaires

  1. Projet Android en lignes de commande
    Par S4milli4 dans le forum Android
    Réponses: 3
    Dernier message: 27/01/2012, 15h59
  2. Réponses: 4
    Dernier message: 21/10/2009, 16h27
  3. Création de projets depuis la ligne de commande
    Par minimumserious dans le forum C#
    Réponses: 2
    Dernier message: 01/07/2009, 10h56
  4. Lancer mon projet depuis une ligne de commande
    Par freestyler dans le forum EDI
    Réponses: 6
    Dernier message: 19/06/2007, 17h47
  5. Comment compiler un projet en ligne de commande ?
    Par mathieutlse dans le forum EDI
    Réponses: 3
    Dernier message: 11/07/2003, 13h32

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo