-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-rootio.sh
executable file
·44 lines (34 loc) · 1 KB
/
install-rootio.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
## set up freeswitch on debian jessie for root.io
set -e
set -x
sudo apt-get install virtualenv postgresql postgresql-server-dev-all build-essential libpython-dev libzmq3-dev -y
sudo -u postgres createuser -s jessie
sudo -u jessie createdb rootio
cd ~
mkdir venvs
git clone https://github.com/mgax/rootio-test-media media
git clone https://github.com/rootio/rootio_web
cd rootio_web
virtualenv ../venvs/web
source ../venvs/web/bin/activate
pip install -r requirements.txt
mkdir instance instance/log
cat > instance/rootio.cfg <<ROOTIO_CFG
from pathlib import Path
instance = Path(__file__).resolve().parent
root = instance.parent
PROJECT_ROOT = str(root)
SQLALCHEMY_DATABASE_URI = 'postgres:///rootio'
LOG_FOLDER = str(instance / 'log')
MAIL_SERVER = 'smtp.example.com'
MAIL_USE_TLS = False
MAIL_USE_SSL = False
SECRET_KEY = 'some random secret'
PROJECT = 'Rootio Web'
ADMINS = ['admin@example.com']
DEBUG = True
MEDIA_PREFIX = '/home/jessie/media'
ROOTIO_CFG
./manage.py reset_db
./manage.py demo_data