· 9 years ago · Jun 24, 2016, 12:30 AM
1#!/bin/bash -l
2
3cd /home/taiga
4git clone https://github.com/taigaio/taiga-back.git taiga-back
5cd /home/taiga/taiga-back
6git checkout stable
7
8mkvirtualenv -p /usr/bin/python3.5 taiga
9pip install -r requirements.txt
10
11python manage.py migrate --noinput
12python manage.py loaddata initial_user
13python manage.py loaddata initial_project_templates
14python manage.py loaddata initial_role
15python manage.py compilemessages
16python manage.py collectstatic --noinput
17
18echo '
19
20
21from .common import *
22
23MEDIA_URL = "http://example.com/media/"
24STATIC_URL = "http://example.com/static/"
25ADMIN_MEDIA_PREFIX = "http://example.com/static/admin/"
26SITES["front"]["scheme"] = "http"
27SITES["front"]["domain"] = "example.com"
28
29SECRET_KEY = "theveryultratopsecretkey"
30
31DEBUG = False
32TEMPLATE_DEBUG = False
33PUBLIC_REGISTER_ENABLED = True
34
35DEFAULT_FROM_EMAIL = "no-reply@example.com"
36SERVER_EMAIL = DEFAULT_FROM_EMAIL
37
38# Uncomment and populate with proper connection parameters
39# for enable email sending. EMAIL_HOST_USER should end by @domain.tld
40#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
41#EMAIL_USE_TLS = False
42#EMAIL_HOST = "localhost"
43#EMAIL_HOST_USER = ""
44#EMAIL_HOST_PASSWORD = ""
45#EMAIL_PORT = 25
46
47# Uncomment and populate with proper connection parameters
48# for enable github login/singin.
49#GITHUB_API_CLIENT_ID = "yourgithubclientid"
50#GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret"
51
52
53' >> /home/taiga/taiga-back/settings/local.py