Installera Taiga.io Agile Project Management Software på Ubuntu 16.04

 

Taiga.io is an open source project management system for agile developers, designers, and project managers. It's a beautiful project management tool that can handle both simple and complex projects for startups, software developers etc.

Taiga-plattformen har tre huvudkomponenter, och varje komponent har sina egna beroenden.

  1. taiga-back: Backend av programmet som tillhandahåller ett API. Skriven i Python och Django.
  2. taiga-front-dist: Taiga Frontend är skrivet i AngularJS och CoffeeScript.
  3. taiga-händelser: Taiga WebSocket-server för att visa realtidsändringar i apparna. Och använder RabbitMQ som en budskapsmäklare.

I den här handledningen kommer jag att visa dig steg för steg hur du installerar Taiga.io-projekthanteringsverktyget på Ubuntu 16.04-servern. Vi lär oss hur du installerar Ubuntu-servern för Taiga.io-installationen.

Förutsättningar

  • ubuntu 16.04
  • Root Privileges

Vad vi ska göra

  1. Installera förutsättningar
  2. Lägg till Taiga Användare
  3. Installera och konfigurera Taiga Backend
  4. Installera och konfigurera Taiga Frontend
  5. Installera och konfigurera Taiga Events
  6. Konfigurera cirkus och gunicorn
  7. Konfigurera Taiga Nginx Virtualhost
  8. Testning

Step 1 - Install Prerequisites

Innan vi installerar alla Taiga.io-komponenter måste vi förbereda systemet genom att installera nödvändiga paket. I det här första steget installerar vi paket som behövs för alla Taiga-komponenter och moduler, inklusive Nginx, RabitMQ, Redis etc.

Till att börja med, uppdatera förvaret och uppgradera systemet.

sudo apt uppdatera
sudo apt uppgradering -y

- Install Dependencies

Följande paket kommer att användas för att sammanställa några pythonmoduler. Kör apt kommandot nedan för att installera dem alla på systemet.

sudo apt install -y build-essential binutils-doc autoconf flex bison libjpeg-dev libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev automake libtool libffi-dev curl git tmux gettext

- Install Nginx

Taiga.io is a web-based application tool. It's running on the web server. And for this guide, we will be using Nginx web server for the installation.

Installera Nginx med hjälp av apt-kommandot nedan.

sudo apt installera nginx -y

När installationen är klar startar du Nginx-tjänsten och aktiverar den för att starta vid systemstart, något som du kan göra med systemctl-kommandot.

systemctl start nginx
systemctl aktivera nginx

Kontrollera nu med netstat och kontrollera att HTTP-porten finns på listan.

netstat -plntu

Nginx installeras framgångsrikt

- Install Redis and RabbitMQ

This is an optional package if you don't want async notification. Install Redis and RabbitMQ using the apt command below.

sudo apt installera -y redis-server rabbitmq-server

När installationen är klar startar du redis- och rabbitmq-tjänsterna och lägger till dessa tjänster i starttiden.

Systemet startar redis
systemctl start rabbitmq-server
systemctl enable rabbitmq-server

Next, we need to create a new user and virtual host named 'taiga' for RabbitMQ - it will be used for 'taiga-events'.

Run commands below for creating new user and vhost named taiga with password 'aqwe123', then set the permission for the 'taiga' user.

sudo rabbitmqctl add_user taiga aqwe123
sudo rabbitmqctl add_vhost taiga
sudo rabbitmqctl set_permissions -p taiga taiga ".*" ".*" ".*"

Installera Redis och RabbitMQ

- Install Python

'taiga-back' is created with Django Web Framework, and it's uses 'Python 3.5'. So we need to install Python 3.5 on the system.

Kör följande kommando för att installera Python 3.5 med alla nödvändiga beroenden.

sudo apt install -y python3 python3-pip python-dev python3-dev python-pip virtualenvwrapper libxml2-dev libxslt-dev

- Install Circus

Circus är en processchef och socket manager. Den kan användas för att övervaka och styra processer och uttag på Linux-systemet.

For this guide, we will be using circus for managing the 'taiga-events' process created with CoffeeScript.

Installera cirkus med apt kommandot nedan.

sudo apt installera -y cirkus

After the installation is complete, start the 'circusd' service and enable to launch everytime at system boot.

Systemet startar circusd
Systemet aktiverar Circusd

Kontrollera nu tjänsten med följande kommandon.

systemctl status circusd
circusctl status

Och du får resultatet enligt nedan.

Installera cirkus

- Install and Configure PostgreSQL Database

Taiga.io is using PostgreSQL as the database, and the component 'taiga-back' is using PostgreSQL (>= 9.4) as the database.

Installera PostgreSQL 9.5 genom att köra följande apt kommandon.

sudo apt install -y postgresql-9.5 postgresql-contrib-9.5
sudo apt install -y postgresql-doc-9.5 postgresql-server-dev-9.5

Om databasinstallationen är klar startar du PostgreSQL-tjänsten och gör det möjligt att starta varje gång vid systemstart.

Systemet startar postgresql
Systemet möjliggör postgresql

Därefter kommer vi att skapa en ny databas och användare för Taiga.io installationen.

Login to the 'postgres' user.

su - postgres

Create a new database and user named 'taiga' using commands below.

createuser taiga
madeb taiga -O taiga

PostgreSQL-databasen har installerats och databasen för Taiga.io har skapats.

Konfigurera Postgres

- Install Nodejs

Node is needed by 'taiga-events' - add the nodejs nodesource repository and install it with apt command.

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs

Alla paket som behövs för Taiga.io-installationen har installerats framgångsrikt.

Step 2 - Add New User Taiga

In this step, we will create a new system user named 'taiga', and then add it to the sudo group.

Run command to create the new 'taiga' user.

useradd -m -s / bin / bash taiga
passwd taiga

Now add the 'taiga' user to the 'sudo' group.

usermod -a -G sudo taiga

Now login as 'taiga' and try to use the sudo command.

su - taiga
sudo su

Skriv ditt lösenord och se till att du får root-privilegierna.

Lägg till Taiga-användare

New 'taiga' user has been created.

Step 3 - Configure Taiga Backend

Taiga-back is a backend of Taiga.io that provides an API. It's written in Python and Django Web Framework.

In this step, we will install and configure the taiga component 'taiga-back' as a backend that provides an API.

Login to the 'taiga' user and download the 'taiga-back' source code from GitHub.

su - taiga
git klon https://github.com/taigaio/taiga-back.git taiga-back

Now go to the 'taiga-back' directory and change the branch to the 'stable' branch.

cd taiga-back /
git checkout stabil

Next, we need to create new python environment 'taiga' using the virtualenv.

mkvirtualenv -p / usr / bin / python3.5 taiga

Konfigurera Taiga Backend

Log in to the new 'taiga' virtual environment and install all python modules needed by the 'taiga-back' using pip command as shown below.

workon taiga
pip installera -r requirements.txt

Efter installationen av alla erforderliga moduler är komplett måste vi fylla i databasen med grundläggande grundläggande data.

Kör alla initialisera kommandon nedan.

python manage.py migrate --noinput
python manage.py loaddata initial_user
python manage.py loaddata initial_project_templates
python manage.py kompileringar
python manage.py collectstatic --noinput

The commands will automatically create an administrator account 'administration"med lösenord"123123'.

Next, create a new configuration for 'taiga-back' using vim.

vim ~ / taiga-back / settings / local.py

Klistra in följande konfiguration där.

från .vanlig import * MEDIA_URL = "http://taiga.hakase-labs.co/media/" STATIC_URL = "http://taiga.hakase-labs.co/static/" SITES ["front"] ["system "]" "SITES [" front "] [" domain "] =" taiga.hakase-labs.co "SECRET_KEY =" myverysecretkey "DEBUG = Fel PUBLIC_REGISTER_ENABLED = Sant DEFAULT_FROM_EMAIL =" [email protected] "SERVER_EMAIL = DEFAULT_FROM_EMAIL # CELERY_ENABLED = True EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend" EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp: // taiga: [e-postskyddad]: 5672 / taiga"} # Okänd och fyll i med lämpliga anslutningsparametrar # för aktivera e-postsändning. EMAIL_HOST_USER bör sluta med @ 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 # Obs och fyll i med lämpliga anslutningsparametrar # för aktivera github login / singin. #GITHUB_API_CLIENT_ID = "yourgithubclientid" #GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret"

Spara och avsluta.

Notera:

  • Change the 'MEDIA_URL' and 'STATIC_URL' with your own domain name.
  • Change the 'SECRET_KEY' with your own secret key.
  • Change the EVENTS_PUSH_BACKEND_OPTIONS password value to your own RabbitMQ value. For this guide, we are using password 'aqwe123'.

Now test 'taiga-back' with the command below.

workon taiga
python manage.py körserver 0.0.0.0: 8000

Kommandot körs taiga-back under serverns offentliga IP med port 8000.

kör taiga-back under serverns offentliga IP

Öppna webbläsaren och besök följande adress. Min är: http://192.168.33.10:8000/api/v1/

And you should get the 'taiga-back' API with JSON format as below.

API i json-format

Installation and configuration of 'taiga-back' as backend has been completed.

Step 4 - Configure Taiga Frontend

I det här steget kommer vi att ladda ner och konfigurera Taiga-fronten. Frontenden hanterar alla taiga gränssnitt.

Logga in som Taiga-användaren.

su - taiga

Download the 'taiga-front-dist' script using git command.

cd ~
git klon https://github.com/taigaio/taiga-front-dist.git taiga-front-dist

After this, go to the 'taiga-front-dist' directory and change the branch to 'stable'.

cd taiga-front-dist /
git checkout stabil

Now copy the sample of 'taiga-front-dist' configuration to 'conf.json' and edit it using the vim editor.

cp ~ / taiga-front-dist / dist / conf.example.json ~ / taiga-front-dist / dist / conf.json
vim ~ / taiga-front-dist / dist / conf.json

Make all configuration as below and change the 'api' and 'eventsUrl' with your own domain name.

{"api": "http://taiga.hakase-labs.co/api/v1/", "eventsUrl": "ws: //taiga.hakase-labs.co/events", "debug": "true "," publicRegisterEnabled ": true," feedbackEnabled ": true," privacyPolicyUrl ": null," termsOfServiceUrl ": null," maxUploadFileSize ": null," contribPlugins ": []}

Spara och avsluta.

Konfigurera Taiga Frontend

Taiga frontend konfiguration har slutförts.

Step 5 - Configure Taiga Events

Taiga-events is a WebSocket server that allows you to show real-time changes in the Taiga.io Dashboard, and it uses RabbitMQ as a message broker. In this step, we will download and configure 'taiga-events'.

Login as 'taiga' user.

su - taiga

Download the 'taiga-events' source code from GitHub using git command and go to the 'taiga-events' directory.

git clone https://github.com/taigaio/taiga-events.git taiga-events
cd taiga-events

Now install all of the javascript modules needed by 'taiga-events' using npm and then install the 'coffee-script' package to the system.

npm installera
sudo npm install -g coffee-script

Configure Taiga Events

Next, copy the default configuration of 'taiga-events' to 'config.json' and edit it using vim editor.

cp config.example.json config.json
vim config.json

Make the configuration as below.

{
"url": "amqp://taiga:[email protected]:5672/taiga",
"secret": "myverysecretkey",
"webSocketServer": {
"port": 8888
}
}

Spara och avsluta.

Notera:

  • Change the 'url' value with your own rabbitmq user and password.
  • For the 'secret' value, make sure it matches with the 'SECRET_KEY' on 'local.py' the configuration file of 'taiga-back'.

Taiga-events configuration has been completed.

Step 6 - Configure Circus and Gunicorn

Circus will be used for controlling and managing 'taiga-back' and 'taiga-events' process. 'taiga-events' is running as a coffee script, and 'taiga-back' is running under Gunicorn.

In this step, we will add new taiga-events and taiga-bac to circusd.

For the 'taiga-events', create new file 'taiga-events.ini' using vim.

vim /etc/circus/conf.d/taiga-events.ini

Klistra in konfigurationen nedan.

[watcher:taiga-events]
working_dir = /home/taiga/taiga-events
cmd = /usr/bin/coffee
args = index.coffee
uid = taiga
numprocesses = 1
autostart = true
send_hup = true
stdout_stream.class = FileStream
stdout_stream.filename = /home/taiga/logs/taigaevents.stdout.log
stdout_stream.max_bytes = 10485760
stdout_stream.backup_count = 12
stderr_stream.class = FileStream
stderr_stream.filename = /home/taiga/logs/taigaevents.stderr.log
stderr_stream.max_bytes = 10485760
stderr_stream.backup_count = 12

Spara och avsluta.

And for the taiga-back, create new file 'taiga.ini'.

vim /etc/circus/conf.d/taiga.ini

Klistra in följande konfiguration där.

[watcher:taiga]
working_dir = /home/taiga/taiga-back
cmd = gunicorn
args = -w 3 -t 60 --pythonpath=. -b 127.0.0.1:8001 taiga.wsgi
uid = taiga
numprocesses = 1
autostart = true
send_hup = true
stdout_stream.class = FileStream
stdout_stream.filename = /home/taiga/logs/gunicorn.stdout.log
stdout_stream.max_bytes = 10485760
stdout_stream.backup_count = 4
stderr_stream.class = FileStream
stderr_stream.filename = /home/taiga/logs/gunicorn.stderr.log
stderr_stream.max_bytes = 10485760
stderr_stream.backup_count = 4
[env:taiga]
PATH = /home/taiga/.virtualenvs/taiga/bin:$PATH
TERM=rxvt-256color
SHELL=/bin/bash
USER=taiga
LANG=en_US.UTF-8
HOME=/home/taiga
PYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.5/site-packages

Spara och avsluta.

Next, we need to create new 'logs' directory for both 'taiga-events' and 'taiga-back' processes.

su - taiga
mkdir -p ~/logs

Now restart the circusd service and check all of the processes available.

systemctl restart circusd
circusctl status

And make sure the 'taiga-events' and 'taiga-back' is active on the process list, as shown below.

Konfigurera cirkus och gunicorn

Step 7 - Configure Taiga Nginx Virtual Host

In this step, we will configure Nginx virtual host for Taiga.io. We will create new virtual host file under 'conf.d' directory for our Taiga.io installation.

Go to the nginx configuration directory and delete the 'default' virtual host file.

cd / etc / nginx /
sudo rm -f sites-enabled/default

Now create new virtual host file 'taiga.conf' under the 'conf.d' directory.

vim /etc/nginx/conf.d/taiga.conf

Klistra in följande konfiguration där.

server {
listen 80 default_server;
server_name _;
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;
}
# Taiga-events
location /events {
proxy_pass http://127.0.0.1:8888/events;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
}

Spara och avsluta.

Now run test nginx configuration and make sure there is no error. Then restart the web server service.

nginx -t
systemctl starta om nginx

Nginx virtual host configuration for Taiga.io has been completed.

Configure Taiga Nginx Virtual Host

Steg 8 - Testning

Open your web browser and visit the Taiga.io domain name. Mine is: http://taiga.hakase-labs.co

And you will get the default taiga home page.

Test taiga.io

Now click the 'Login' button on the top right and you will get the admin login page.

Taiga.io Login

Login with the default user 'administration' and password '123123'.

Och du får resultatet enligt nedan.

Admin account

Next, we will reset the default admin password.

Click the 'administrator' button on the top right, then click 'Change Password'.

Change administrator password

Now type the old password '123123' and the new password as you want, then click 'Save'.

Ändra lösenord

Installation and configuration for Taiga.io on Ubuntu 16.04 has been completed successfully.

Hänvisning

källa

annonser

Lämna ett svar

GTranslate Your license is inactive or expired, please subscribe again!