Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install taiga on linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install taiga on linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Taiga installation configuration 1. Brief introduction

How to deploy a complete Taiga service (each module is part of the Taiga platform).

The Taiga platform consists of three main components, each with its own dependency at compile time and run time:

Taiga-back (backend / api)

Taiga-front-dist (front end)

Taiga-events (websockets Gateway) (optional)

Each component can run on a unique machine, or all components can be installed on different machines. In this tutorial, we will install everything on one machine and install all three Taiga components. This type of setting should be sufficient to meet small and medium-sized production environments.

two。 Overview

This tutorial assumes that you are using a clean, recently updated Ubuntu 16.04 image.

Because of the nature of the front end, Taiga is used through the domain / public-ip, because the front end application runs in your browser. The front end must be able to communicate with the back end / API, so both the front end and the back end must be accessible through the domain / public-ip.

The installation of Taiga must be done by "regular" users, not root users.

In this tutorial, we assume the following details:

IP: 80.88.23.45 hostname: (example.com points to 80.88.23.45)

User name: taiga

System ram > = 1GB (required for compiling lxml)

Working directory / home/taiga/ (user default taiga)

2.1 system Architecture description this is a short system architecture description that can help you understand how Taiga is built and works. Be sure to read this description for a high-level overview before further installation.

Taiga consists of two core (mandatory) modules:

Taiga-back

Taiga-front

Taiga-back is written in django,python3 and provides API endpoints for the front end.

Taiga-front is mainly written in angularjs and coffeescript, depending on the back end.

The python backend is exposed by gunicorn (port 9001), which is a Python WSGI HTTP server. The process manager is systemd, which runs gunicorn and taiga-back together. Technically, the back end communicates with the database (postgresql), and through the front end, it allows users to use the functions of Taiga. The communication between the front end and the back end is done using API.

The backend is then exposed by nginx, and nginx acts as a reverse proxy in this case. The front end is located in the dist folder and is exposed by nginx, and nginx acts as the static Web server for this case.

3 prerequisites Taiga consists of three modules, each of which requires a different package and a third-party package. This section will collect the packages required for a successful Taiga installation and configuration. In this section, we will install all dependencies for all modules, including optional modules and services. Basic package this component taiga-back uses postgresql (> = 9.4) as the database:

Python (3) and virtualenvwrapper pip must be installed with several third-party libraries to upgrade to the latest version of sudo apt-get updatesudo apt-get install-y build-essential binutils-doc autoconf flex bison libjpeg-dev libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev automake libtool curl git tmux gettext nginx rabbitmq-server redis-server postgresql-9.5 postgresql-contrib-9.5 postgresql-doc-9.5 postgresql-server-dev-9.5 python3 python3-pip python3-dev virtualenvwrapper libxml2-dev libxslt-dev Libssl-dev libffi-dev before continuing with the installation This step must be performed! Create a user named taiga and grant it root permissions do not change to the root user. You must complete the installation with the taiga user. The sudo adduser taigasudo adduser taiga sudosudo su taigacd ~ 3.1 configuration dependency uses the initial user and database configuration postgresql:sudo-u postgres createuser taigasudo-u postgres createdb taiga- O taiga--encoding='utf-8'-- locale=en_US.utf8-- template=template0 to create a user taiga named user, and RabbitMQ's virtual host (taiga-events) sudo rabbitmqctl add_user taiga PASSWORD_FOR_EVENTSsudo rabbitmqctl add_vhost taigasudo rabbitmqctl set_permissions-p taiga taiga ". *" 4. Back-end configuration this section helps configure the back-end (api) Taiga service and its dependencies. Download the code cd ~ git clone https://github.com/taigaio/taiga-back.git taiga-backcd taiga-backgit checkout stable to create a new virtualenvmkvirtualenv-p / usr/bin/python3 taiga installation dependency named taiga pip install-r requirements.txt populates the database python manage.py migrate-- noinputpython manage.py loaddata initial_userpython manage.py loaddata initial_project_templatespython manage.py compilemessagespython manage.py collectstatic-- noinput with the initial basic data

This creates an administrator account. The login credential is admin and the password is 123123.

Optional: if you want to load some sample data into Taiga, execute the following command, which populates the database with sample projects and random data (useful for demonstration):

Python manage.py sample_data copies and pastes the following configuration ~ / taiga-back/settings/local.py and updates it with your own details: from .common import * MEDIA_URL = "http://example.com/media/"STATIC_URL =" http://example.com/static/"SITES["front"]["scheme"] = "http" SITES ["front"] ["domain"] = "example.com" SECRET_KEY = "theveryultratopsecretkey" DEBUG = FalsePUBLIC_REGISTER_ENABLED = TrueDEFAULT_FROM_EMAIL = "no-reply@example.com" SERVER_EMAIL = DEFAULT_FROM_EMAIL#CELERY_ENABLED = TrueEVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend" EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:PASSWORD_FOR_EVENTS@localhost:5672/taiga"} # 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 = 2cm Uncomment and populate with proper connection parameters# for enable github login/singin.#GITHUB_API_CLIENT_ID = "yourgithubclientid" # GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret" Verification

"(optional) to ensure that everything is fine, issue the following command to run the back end in development mode for testing:"

Workon taigapython manage.py runserver

Then, you must be able to see json:http:// localhost:8000 / api / v1 / representing the list of endpoints on the URL.

At this stage, the backend has been successfully installed, but to run the python backend in production, you must first configure the application server. For more information, see the rest of this document. 5. Download code from Github for front-end installation: cd ~ git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-distcd taiga-front-distgit checkout stable copy sample configuration file: cp ~ / taiga-front-dist/dist/conf.example.json ~ / taiga-front-dist/dist/conf.json edit the sample configuration in the following mode (replace with your own detailed message): {"api": "http://example.com/api/v1/"," EventsUrl: ws://example.com/events, debug: true, publicRegisterEnabled: true, feedbackEnabled: true, privacyPolicyUrl: null, termsOfServiceUrl: null, GDPRUrl: null, maxUploadFileSize: null, contribPlugins: []} use copy and paste in browsers carefully to avoid http:// duplication.

It is not enough to have taiga-front-dist, pre-dist download and configuration. The next step is to expose the code (in the dist directory) under the static file Web server. In this tutorial, we use nginx as the static file Web server and reverse proxy. The configuration of nginx will be explained later.

Thank you for reading this article carefully. I hope the article "how to install taiga on linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report