インストール
Githubを使用したインストール
まず、すべての依存関係をインストールしていることを確認してください。 GitHubからの最新のTaiga-Backをドキュメントルートフォルダーにクローンします。
git clone https://github.com/taigaio/taiga-back.git taiga-back
cd taiga-back
git checkout stable
Taigaという名前の新しいVirtualenvを作成します:
mkvirtualenv -p /usr/bin/python3 taiga
すべてのPython依存関係をインストールします。
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
上記の移行により、管理者アカウントが作成されます。ログイン資格情報は次のとおりです。ユーザー名:管理パスワード:123123 Taiga-Backのセットアップを完了するには、オプションで電子メール送信サポートを使用して、適切な静的/メディアファイル解像度の初期構成ファイルを作成します。 〜/taiga-back/settings/local.pyに次の構成をコピーして、独自の詳細を更新します。
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"
GitHubからFrontendコードをダウンロードしてください:
cd ~
git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
cd taiga-front-dist
git checkout stable
サンプル設定ファイルをコピーします。
cp ~/taiga-front-dist/dist/conf.example.json ~/taiga-front-dist/dist/conf.json
以下のパターンに従って、例の構成を編集します(独自の詳細に置き換えます):
{
"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": []
}
Taiga-Front-Distをダウンロードして構成するには不十分です。次のステップは、静的ファイルWebサーバーの下にコード(Dist Directory)を公開することです。