Changes between Initial Version and Version 1 of WebDienste


Ignore:
Timestamp:
Jul 19, 2020, 2:52:32 PM (5 years ago)
Author:
Johannes Lode
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebDienste

    v1 v1  
     1= Web-Dienste
     2
     3[[PageOutline]]
     4
     5== Apache
     6
     7tbd.
     8
     9== Trac
     10
     11Der `tracd` läuft in einem Docker-Container, in einem Docker-Netzwerk `lf-net` unter der IP `172.18.1.2`.
     12
     13SSL wird vom Apachen gemacht, dann wird ge-forwarded. SSL-Cert wird per `getssl` von Lets-Encrypt bezogen.
     14
     15Die Projekt-Daten und die SVN-Repos sind als Volumes gemountet.
     16
     17Docker-Kommando:
     18{{{
     19$ docker run --restart unless-stopped --name trac -d --net lf-net --ip 172.18.1.2 -v /var/www/trac.vpn21.net/files:/trac -v /var/www/usvn/public_html/files/svn:/trac/repos:ro joluxer/trac:1.2-babel-svn-scratch
     20}}}
     21
     22=== Neues Projekt hinzufügen
     23
     24{{{
     25$ docker exec -it trac /bin/bash -il
     26# trac-admin /trac/projects/P21-GLT initenv --inherit=/trac/projects/Mtronig/conf/trac.ini
     27Creating a new Trac environment at /trac/projects/P21-GLT
     28
     29Trac will first ask a few questions about your environment
     30in order to initialize and prepare the project database.
     31
     32 Please enter the name of your project.
     33 This name will be used in page titles and descriptions.
     34
     35Project Name [My Project]> P21 GLT
     36
     37 Please specify the connection string for the database to use.
     38 By default, a local SQLite database is created in the environment
     39 directory. It is also possible to use an existing MySQL or
     40 PostgreSQL database (check the Trac documentation for the exact
     41 connection string syntax).
     42
     43Database connection string [sqlite:db/trac.db]>
     44
     45Creating and Initializing Project
     46Initenv for '/trac/projects/P21-GLT' failed.
     47Failed to create environment.
     48'Environment' object has no attribute 'get_db_cnx'
     49Traceback (most recent call last):
     50  File "/usr/lib/python2.7/dist-packages/trac/admin/console.py", line 497, in do_initenv
     51    options=options)
     52  File "/usr/lib/python2.7/dist-packages/trac/core.py", line 128, in __call__
     53    self.__init__(*args, **kwargs)
     54  File "/usr/lib/python2.7/dist-packages/trac/env.py", line 301, in __init__
     55    setup_participant.environment_created()
     56  File "/usr/lib/python2.7/dist-packages/mastertickets/api.py", line 25, in environment_created
     57    self.upgrade_environment(self.env.get_db_cnx())
     58AttributeError: 'Environment' object has no attribute 'get_db_cnx'
     59# _
     60}}}
     61
     62Das geht jetzt scheinbar schief, weil der Vorgang (sehr spät) mit einem Fehler abbricht, aber die Einrichtung ist im Prinzip schon fertig. Die DB und das Wiki muss noch aktualisiert werden und ein oder mehrere Admins benannt werden.
     63
     64{{{
     65# trac-admin /trac/projects/P21-GLT upgrade
     66# trac-admin /trac/projects/P21-GLT wiki upgrade
     67# trac-admin /trac/projects/P21-GLT permission add Admin TRAC_ADMIN
     68# trac-admin /trac/projects/P21-GLT permission add lode TRAC_ADMIN
     69}}}
     70
     71=== Projekt-Konfiguration
     72
     73tbd.
     74
     75== SVN
     76
     77tbd.
     78
     79== Next-Cloud
     80
     81tbd.
     82
     83== Etherpad Texteditor
     84
     85tbd.
     86
     87== Tracks
     88
     89tbd.