forked from mateitrusca/scoreboard.buildout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
87 lines (53 loc) · 2.43 KB
/
README.txt
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
===================
scoreboard.buildout
===================
Scoreboard installation kit based on zc.buildout_
Prerequisites - System packages
-------------------------------
These packages should be installed as superuser (root).
Debian based systems
~~~~~~~~~~~~~~~~~~~~
RHEL based systems
~~~~~~~~~~~~~~~~~~
Install Python2.7 with PUIAS: https://gist.github.com/nico4/9616638
Run these commands::
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7 -
pip2.7 install virtualenv
pip2.7 install setuptools==2.1
yum install git libffi-devel libxslt-devel
Product directory
-----------------
Create the product directory::
mkdir -p /var/local/scoreboard
Create a new user::
adduser edw
Change the product directory's owner::
chown edw:edw /var/local/scoreboard -R
Development setup
-----------------
Run the following commands as an unpriviledged user in the product directory::
su edw
cd /var/local/scoreboard
Clone the repository::
git clone https://github.com/eaudeweb/scoreboard.buildout.git
cd scoreboard.buildout
Switch to the development branch::
git checkout devel
Create and activate the virtual environment::
virtualenv-2.7 .
source bin/activate
Run buildout::
python bootstrap.py -c devel.cfg
bin/buildout -c devel.cfg
Download and unzip data files::
cd var/filestorage/
wget http://scoreboardtest.edw.ro/download/Data.fs.gz
wget http://scoreboardtest.edw.ro/download/filestorage.tar.gz
wget http://scoreboardtest.edw.ro/download/blobstorage.tar.gz
gunzip Data.fs.gz
tar xf filestorage.tar.gz
tar xf blobstorage.tar.gz
Start application::
cd ../..
bin/instance fg
Open application in browser: http://localhost:8440/Plone