Taiga setup ¶
Installation
To install for production follow these instructions:
https://taigaio.github.io/taiga-doc/dist/setup-production.html
If receiving errors when installing python requirements, try upgrading setuptools
pip install -U setuptools
file /etc/supervisor/conf.d/taiga.conf
; ===================================== ; gunicorn supervisord script for taiga ; ===================================== [program:taiga] environment=PYTHONOPTIMIZE=1,PATH="/home/taiga/.virtualenvs/taiga/bin" directory=/home/taiga/taiga-back command=/home/taiga/.virtualenvs/taiga/bin/gunicorn -w 3 -t 60 --pythonpath=. -b 127.0.0.1:8001 taiga.wsgi stdout_logfile=/home/taiga/logs/taiga_stdout.log stderr_logfile=/home/taiga/logs/taiga_stderr.log user=taiga autostart=true autorestart=true ; =================================== ; celery supervisord script for taiga ; =================================== ;[program:taiga-celery] ;environment=PYTHONOPTIMIZE=1,PATH="/home/taiga/.virtualenvs/taiga/bin" ;directory=/home/taiga/taiga-back ;command=/home/taiga/.virtualenvs/taiga/bin/celery -n taiga -A taiga worker -c 4 ;stdout_logfile=/home/taiga/logs/taiga-celery_stdout.log ;stderr_logfile=/home/taiga/logs/taiga-celery_stderr.log ;user=taiga ;autostart=true ;autorestart=true
Nginx config file
server { listen 80; server_name taiga.brainstorm.it; large_client_header_buffers 4 32k; client_max_body_size 50M; charset utf-8; access_log /home/taiga/logs/nginx.access.log; error_log /home/taiga/logs/nginx.error.log; # Frontend location / { root /home/taiga/taiga-front-dist/dist/; try_files $uri $uri/ /index.html; } # Backend location /api { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8001/api; proxy_redirect off; } # Django admin access (/admin/) location /admin { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8001$request_uri; proxy_redirect off; } # Static files location /static { alias /home/taiga/taiga-back/static; } # Media files location /media { #alias /home/taiga/taiga-back/media; alias /home/taiga/public/media; } }
Settings
./taiga-back/settings/local.py:
from .common import * MEDIA_ROOT = os.path.abspath(os.path.join(BASE_DIR, '..', 'public', 'media')) MEDIA_URL = "http://taiga.brainstorm.it/media/" STATIC_URL = "http://taiga.brainstorm.it/static/" SITES["front"]["scheme"] = "http" SITES["front"]["domain"] = "taiga.brainstorm.it" SECRET_KEY = 'rvymdnik_s@v0-3y5po*i66x%5w+&6!$ip&z^fxz+4e3xb(cma' DEBUG = False PUBLIC_REGISTER_ENABLED = False DEFAULT_FROM_EMAIL = "no-reply@example.com" SERVER_EMAIL = DEFAULT_FROM_EMAIL # Uncomment and populate with proper connection parameters # for enable email sending. EMAIL_HOST_USER should end by @domain.tld #EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" #EMAIL_USE_TLS = False #EMAIL_HOST = "localhost" #EMAIL_HOST_USER = "" #EMAIL_HOST_PASSWORD = "" #EMAIL_PORT = 25 # Uncomment and populate with proper connection parameters # for enable github login/singin. #GITHUB_API_CLIENT_ID = "yourgithubclientid" #GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret"
./taiga-front-dist/dist/conf.json:
{ "api": "http://taiga.brainstorm.it/api/v1/", "eventsUrl": null, "eventsMaxMissedHeartbeats": 5, "eventsHeartbeatIntervalTime": 60000, "eventsReconnectTryInterval": 10000, "debug": true, "debugInfo": false, "defaultLanguage": "en", "themes": ["taiga"], "defaultTheme": "taiga", "publicRegisterEnabled": false, "feedbackEnabled": true, "privacyPolicyUrl": null, "termsOfServiceUrl": null, "maxUploadFileSize": null, "contribPlugins": [], "tribeHost": null, "importers": [], "gravatar": true }
Taiga: Setup development environment
Follow these instructions:
https://taigaio.github.io/taiga-doc/dist/setup-development.html
and eventually correct gulp-sass and node-sass errors:
npm cache clean npm install gulp-sass@latest npm install node-sass@latest
If still getting errors, try:
npm install --no-optional ...
However do this on Mac OS/X
# install a recent npm version npm install -g npm # clear the npm cache npm cache clean # install the latest node-sass ## if you're using grunt-sass npm install grunt-sass@latest ## if you're using gulp-sass npm install gulp-sass@latest ## else install the latest node-sass npm install node-sass@latest
and also:
npm install gulp-scss-lint --save-dev gem install scss_lint
How to upgrade Taiga
See: https://taigaio.github.io/taiga-doc/dist/upgrades.html
If unable to create new projects after that:
cd taiga-back workon taiga python manage.py loaddata initial_project_templates --traceback