tips:taiga

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:taiga [2017/04/21 12:24] – [frontend] scipiotips:taiga [2022/03/14 10:44] (current) – removed sscipioni
Line 1: Line 1:
-====== Taiga ====== 
  
-===== Installation ===== 
- 
-  * https://taigaio.github.io/taiga-doc/dist/setup-production.html 
- 
-==== backend ==== 
- 
-<code bash> 
-sudo apt-get install -y build-essential binutils-doc autoconf flex bison libjpeg-dev 
-sudo apt-get install -y libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev 
-sudo apt-get install -y automake libtool libffi-dev curl git tmux gettext 
- 
-sudo apt-get install -y build-essential binutils-doc autoconf flex bison libjpeg-dev 
-sudo apt-get install -y libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev 
-sudo apt-get install -y automake libtool libffi-dev curl git tmux gettext libssl-dev 
- 
-# python 
-sudo apt-get install -y python3 python3-pip python-dev python3-dev python-pip virtualenvwrapper 
-sudo apt-get install -y libxml2-dev libxslt-dev 
- 
-# postgres 
-sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 
-sudo apt-get install -y postgresql-doc-9.5 postgresql-server-dev-9.5 
- 
-# nodejs for events 
-sudo apt-get install -y nodejs nodejs-legacy npm 
-sudo npm install -g coffee-script 
-</code> 
- 
-taiga user 
-<code bash> 
-useradd -m taiga 
-su - taiga 
-virtualenv -p python3 lib 
-echo "source ~/lib/bin/activate" >> .bashrc 
-</code> 
- 
-taiga 
-<code bash> 
-cd ~ 
-git clone https://github.com/taigaio/taiga-back.git taiga-back 
-cd taiga-back 
-git checkout stable 
- 
-pip install -r requirements.txt 
-python manage.py migrate --noinput 
-python manage.py loaddata initial_user 
-python manage.py loaddata initial_project_templates 
-python manage.py compilemessages 
-python manage.py collectstatic --noinput 
-</code> 
- 
-<file python ~/taiga-back/settings/local.py> 
- 
-</file> 
- 
-test 
-<code bash> 
-python manage.py runserver 
-curl http://127.0.0.1:8000/api/v1/ 
-</code> 
- 
-celery 
-<code bash> 
-sudo apt-get install -y rabbitmq-server redis-server 
-</code> 
- 
-<file ini /etc/systemd/system/taiga-celery.service> 
-[Unit] 
-Description=Taiga's Async Task Engine 
-Wants=rabbitmq-server.service 
-Requires=rabbitmq-server.service 
- 
- 
-[Service] 
-User=taiga 
-WorkingDirectory=/home/taiga/taiga-back 
-Environment=PATH=/home/taiga/lib/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
-Environment=PYTHONPATH=/home/taiga/lib/lib/python3.5/site-packages 
-ExecStart=/home/taiga/lib/bin/celery -A taiga worker -c 4 
-Restart=always 
-StandardOutput=syslog+console 
-StandardError=syslog+console 
- 
-[Install] 
-WantedBy=taiga.service 
-</file> 
- 
-==== frontend ==== 
- 
-<code bash> 
-cd ~ 
-git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist 
-cd taiga-front-dist 
-git checkout stable 
-</code> 
- 
-<file json ~/taiga-front-dist/dist/conf.json dist/conf.json> 
-{ 
-    "api": "http://localhost:8000/api/v1/", 
-    "eventsUrl": null, 
-    "eventsMaxMissedHeartbeats": 5, 
-    "eventsHeartbeatIntervalTime": 60000, 
-    "eventsReconnectTryInterval": 10000, 
-    "debug": true, 
-    "debugInfo": false, 
-    "defaultLanguage": "it", 
-    "themes": ["taiga"], 
-    "defaultTheme": "taiga", 
-    "publicRegisterEnabled": false, 
-    "feedbackEnabled": true, 
-    "privacyPolicyUrl": null, 
-    "termsOfServiceUrl": null, 
-    "maxUploadFileSize": null, 
-    "contribPlugins": [], 
-    "tribeHost": null, 
-    "importers": [], 
-    "gravatar": true 
-} 
-</file> 
- 
-=== events === 
- 
-<file json ~/taiga-events/config.json> 
-{ 
-    "url": "amqp://taiga:PASSWORD@localhost:5672/taiga", 
-    "secret": "mysecret", 
-    "webSocketServer": { 
-        "port": 8888 
-    } 
-} 
-</file> 
- 
-<code bash> 
-sudo rabbitmqctl add_user taiga PASSWORD 
-sudo rabbitmqctl add_vhost taiga 
-sudo rabbitmqctl set_permissions -p taiga taiga ".*" ".*" ".*" 
-</code> 
- 
-update local.py 
-<file> 
-EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend" 
-EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:PASSWORD@localhost:5672/taiga"} 
-</file> 
- 
-<file ini /etc/systemd/system/taiga-events.service> 
-[Unit] 
-Description=Taiga's Realtime Events Engine 
-Wants=rabbitmq-server.service 
-Requires=rabbitmq-server.service 
- 
-[Service] 
-User=taiga 
-WorkingDirectory=/home/taiga/taiga-events 
-ExecStart=/usr/local/bin/coffee index.coffee 
-Restart=always 
-StandardOutput=syslog+console 
-StandardError=syslog+console 
- 
-[Install] 
-WantedBy=taiga.service 
-</file> 
- 
-apache 
-<file> 
-        <Location /events> 
-                ProxyPass ws://127.0.0.1:8888/events 
-        </Location> 
-</file> 
- 
-==== apache ==== 
- 
-<code bash> 
-a2enmod remoteip proxy_http proxy 
-</code> 
- 
-<file> 
- 
-</file> 
  • tips/taiga.1492770252.txt.gz
  • Last modified: 2017/04/21 12:24
  • by scipio