|
@@ -43,7 +43,7 @@ Note: the following information is for Debian. For other OS, adapt the package n
|
43
|
43
|
|
44
|
44
|
You'll need to install the following packages:
|
45
|
45
|
|
46
|
|
- apt-get install realpath python3 python-virtualenv python-dev python-pip build-essential
|
|
46
|
+ apt-get install realpath python3 python-virtualenv python3-dev python-pip build-essential postgresql-server-dev-all
|
47
|
47
|
|
48
|
48
|
If you work on a local database, then you also need to install PostgreSQL:
|
49
|
49
|
|
|
@@ -55,6 +55,8 @@ Get the sources from Bitbucket:
|
55
|
55
|
|
56
|
56
|
git clone https://bitbucket.org/lebouquetin/pod.git
|
57
|
57
|
|
|
58
|
+Note: Now everything is documented to be executed from the pod directory newly created.
|
|
59
|
+
|
58
|
60
|
### Setup a database ###
|
59
|
61
|
|
60
|
62
|
#### Allowing local connections on PostgreSQL ####
|
|
@@ -80,7 +82,6 @@ First login as root, then su as postgre and run a PostgreSQL client:
|
80
|
82
|
|
81
|
83
|
root@hostname:~# su postgres
|
82
|
84
|
postgres@hostname:/root$ psql
|
83
|
|
- could not change directory to "/root"
|
84
|
85
|
psql (9.1.13)
|
85
|
86
|
Type "help" for help.
|
86
|
87
|
|
|
@@ -91,7 +92,7 @@ Now, type the following commands:
|
91
|
92
|
|
92
|
93
|
CREATE ROLE poduser WITH LOGIN PASSWORD 'podpassword';
|
93
|
94
|
CREATE DATABASE poddb OWNER poduser;
|
94
|
|
- GRANT ALL PRIVILEGES ON DATABASE poddb to poduser;
|
|
95
|
+ GRANT ALL PRIVILEGES ON DATABASE poddb TO poduser;
|
95
|
96
|
|
96
|
97
|
At the end, you can quit the psql client by running the \q quit command:
|
97
|
98
|
|
|
@@ -132,15 +133,15 @@ conflict between system-wide python modules and pod required ones.
|
132
|
133
|
|
133
|
134
|
virtualenv -p /usr/bin/python3 tg2env
|
134
|
135
|
source tg2env/bin/activate
|
135
|
|
- cd pboard && python setup.py develop && cd -
|
136
|
|
- pip install -r install/requirement.txt
|
|
136
|
+ cd pod && python setup.py develop && cd -
|
|
137
|
+ pip install -r install/requirements.txt
|
137
|
138
|
|
138
|
139
|
Note: you may get errors with stevedore/pbr which is not supported by python 3.2
|
139
|
140
|
(debian version of python 3). This is not a real problem
|
140
|
141
|
|
141
|
142
|
### Create configuration ###
|
142
|
143
|
|
143
|
|
- cp pboard/development.ini.base pboard/development.ini
|
|
144
|
+ cp pod/development.ini.base pod/development.ini
|
144
|
145
|
|
145
|
146
|
Configure database in the development.ini file. This is defined as sqlalchemy.url
|
146
|
147
|
and the default value is below:
|
|
@@ -188,13 +189,13 @@ Install dependencies:
|
188
|
189
|
|
189
|
190
|
WSGIProcessGroup pod
|
190
|
191
|
WSGIDaemonProcess pod user=www-data group=adm threads=4 python-path=/opt/demo.archipeldata.com/tg2env/lib/python3.2/site-packages
|
191
|
|
- WSGIScriptAlias / /opt/demo.archipeldata.com/pboard/productionapp.wsgi
|
|
192
|
+ WSGIScriptAlias / /opt/podinstall/pod/productionapp.wsgi
|
192
|
193
|
|
193
|
194
|
#Serve static files directly without TurboGears
|
194
|
|
- Alias /img /opt/demo.archipeldata.com/pboard/pboard/public/img/
|
195
|
|
- Alias /favicon.ico /opt/demo.archipeldata.com/pboard/pboard/public/favicon.ico
|
196
|
|
- Alias /css /opt/demo.archipeldata.com/pboard/pboard/public/css
|
197
|
|
- Alias /javascript /opt/demo.archipeldata.com/pboard/pboard/public/javascript
|
|
195
|
+ Alias /img /opt/podinstall/pod/pod/public/img/
|
|
196
|
+ Alias /favicon.ico /opt/podinstall/pod/pod/public/favicon.ico
|
|
197
|
+ Alias /css /opt/podinstall/pod/pod/public/css
|
|
198
|
+ Alias /javascript /opt/podinstall/pod/pod/public/javascript
|
198
|
199
|
|
199
|
200
|
CustomLog /var/log/apache2/demopod-access.log combined
|
200
|
201
|
ErrorLog /var/log/apache2/demopod-error.log
|
|
@@ -204,9 +205,8 @@ Install dependencies:
|
204
|
205
|
|
205
|
206
|
### Help required ###
|
206
|
207
|
|
207
|
|
-Contact us:
|
|
208
|
+If you need help, contact us. If you want to help, contact us. So... contact us ;)
|
208
|
209
|
|
209
|
|
-* damien.accorsi@free.fr
|
210
|
|
-* sylvain.ferot@hotmail.xxx
|
|
210
|
+Damien Accorsi - damien.accorsi@free.fr
|
211
|
211
|
|
212
|
212
|
|