| | 1 | = Web-Dienste |
| | 2 | |
| | 3 | [[PageOutline]] |
| | 4 | |
| | 5 | == Apache |
| | 6 | |
| | 7 | tbd. |
| | 8 | |
| | 9 | == Trac |
| | 10 | |
| | 11 | Der `tracd` läuft in einem Docker-Container, in einem Docker-Netzwerk `lf-net` unter der IP `172.18.1.2`. |
| | 12 | |
| | 13 | SSL wird vom Apachen gemacht, dann wird ge-forwarded. SSL-Cert wird per `getssl` von Lets-Encrypt bezogen. |
| | 14 | |
| | 15 | Die Projekt-Daten und die SVN-Repos sind als Volumes gemountet. |
| | 16 | |
| | 17 | Docker-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 |
| | 27 | Creating a new Trac environment at /trac/projects/P21-GLT |
| | 28 | |
| | 29 | Trac will first ask a few questions about your environment |
| | 30 | in 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 | |
| | 35 | Project 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 | |
| | 43 | Database connection string [sqlite:db/trac.db]> |
| | 44 | |
| | 45 | Creating and Initializing Project |
| | 46 | Initenv for '/trac/projects/P21-GLT' failed. |
| | 47 | Failed to create environment. |
| | 48 | 'Environment' object has no attribute 'get_db_cnx' |
| | 49 | Traceback (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()) |
| | 58 | AttributeError: 'Environment' object has no attribute 'get_db_cnx' |
| | 59 | # _ |
| | 60 | }}} |
| | 61 | |
| | 62 | Das 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 | |
| | 73 | tbd. |
| | 74 | |
| | 75 | == SVN |
| | 76 | |
| | 77 | tbd. |
| | 78 | |
| | 79 | == Next-Cloud |
| | 80 | |
| | 81 | tbd. |
| | 82 | |
| | 83 | == Etherpad Texteditor |
| | 84 | |
| | 85 | tbd. |
| | 86 | |
| | 87 | == Tracks |
| | 88 | |
| | 89 | tbd. |