Cài đặt

Cài đặt bằng GitHub

Đầu tiên, hãy chắc chắn rằng bạn đã cài đặt tất cả các phụ thuộc. Sao chép Taiga-Back mới nhất từ ​​GitHub vào thư mục gốc tài liệu:

    git clone https://github.com/taigaio/taiga-back.git taiga-back
    cd taiga-back
    git checkout stable

Tạo một Virtualenv mới có tên Taiga:

    mkvirtualenv -p /usr/bin/python3 taiga

Cài đặt tất cả các phụ thuộc Python:

    pip install -r requirements.txt

Thực hiện tất cả các di chuyển để điền vào cơ sở dữ liệu với dữ liệu ban đầu cần thiết cơ bản:

    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

Các di chuyển trên tạo ra một tài khoản quản trị viên. Thông tin đăng nhập là như sau: Tên người dùng: Mật khẩu quản trị: 123123 Để hoàn thành việc thiết lập Taiga-back, hãy tạo tệp cấu hình ban đầu để phân giải tệp tĩnh/phương tiện thích hợp, tùy chọn với hỗ trợ gửi email: Sao chép-dán cấu hình sau vào ~/Taiga-back/Cài đặt/Local.py và cập nhật nó bằng các chi tiết của riêng bạn:

    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 = False
    PUBLIC_REGISTER_ENABLED = True
    
    DEFAULT_FROM_EMAIL = "no-reply@example.com"
    SERVER_EMAIL = DEFAULT_FROM_EMAIL
    
    #CELERY_ENABLED = True
    
    EVENTS_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
    # to enable email sending. `EMAIL_HOST_USER` should end by @.
    #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
    # to enable GitHub login/sign-in.
    #GITHUB_API_CLIENT_ID = "yourgithubclientid"
    #GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret"

Tải xuống mã Frontend từ GitHub:

    cd ~
    git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
    cd taiga-front-dist
    git checkout stable

Sao chép tệp cấu hình ví dụ:

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

Chỉnh sửa cấu hình ví dụ theo mẫu bên dưới (thay thế bằng chi tiết của riêng bạn):

    {
    	"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": []
    }

Có Taiga-Front-Dist được tải xuống và cấu hình là không đủ. Bước tiếp theo là để hiển thị mã (trong thư mục dist) trong một máy chủ web tệp tĩnh.

 Tiếng Việt