This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
PACKAGING
57 lines (46 loc) · 1.72 KB
/
PACKAGING
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
What is required to install debile web frontend
So that may become some hints to create the package.
This not an "INSTALL" file as I hope we'll never have to install the system
like this...
And I use virtualenvwrapper here for my sanity, preferably replaced in
production by installing the debian packages instead of using pip
System : fresh wheezy, up to date on 04 Jul 2013.
Must be installed after debile-master
#FIXME or WONTFIX ? must be on the same machine than debile and the pool
(debile)
* Fetch the repo of debile-web
cd ~ && git clone https://github.com/opencollab/debile-web.git
(debile) virtualenv=debile
* Install debile-web dependancies
cd ~/debile-web
pip install -r requirements.txt
* Render the templates
(root)
wget http://snapshot.debian.org/archive/debian/20130429T032833Z/pool/main/n/nodejs/nodejs_0.6.19%7Edfsg1-7_amd64.deb && dpkg -i nodejs_0.6.19%7Edfsg1-7_amd64.deb; apt-get install -f
# More recent version of nodejs needs a too recent version of the glibc
wget http://ftp.us.debian.org/debian/pool/main/l/less.js/node-less_1.4.2-1_all.deb && dpkg -i node-less_1.4.2-1_all.deb
(debile)
cd ~/debile-web && make
* Configure the reverse proxy
(root)
/etc/nginx/sites-available/debile
###############################################################
server {
server_name debian-server;
location / {
proxy_pass http://localhost:5000;
}
}
###############################################################
cd /etc/nginx/sites-enabled && ln -s ../sites-available/debile
* Start the daemon
service nginx start
(debile) virtualenv=debile
cd ~/debile-web
make
(debile) virtualenv=debile
* Run the web UI !
cd ~/debile-web
python app.py
* To connect to the database:
psql debile_master