-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
96 lines (70 loc) · 2.02 KB
/
INSTALL
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
88
89
90
91
92
93
94
95
96
Dependencies
=================
On hforge websites:
- iTools http://www.hforge.org/itools/
- iKaaro http://www.hforge.org/ikaaro/
- iTws http://www.hforge.org/itws/
Other depedencies:
elaphe: Used to generate barcode (http://code.google.com/p/elaphe/)
ghostscript: Used by elaphe to generate barcode
pyPdf: To merge PDF
Installation
=================
Installation with a virtualenv
::
$ virtualenv perfect-sale
$ cd perfect-sale
$ mkdir Packages
$ cd Packages
$ wget http://download.hforge.org/itools/0.61/itools-0.61.3.tar.gz
$ wget http://download.hforge.org/ikaaro/0.61/ikaaro-0.61.3.tar.gz
$ git clone git://git.hforge.org/itws.git
$ git clone git://git.hforge.org/shop.git
$ tar xzf itools-0.61.3.tar.gz
$ tar xzf ikaaro-0.61.3.tar.gz
$ tar xzf itws-1.0.tar.gz
$ cd itools-0.61.3/
$ ../../bin/python setup.py install
$ cd ../ikaaro-0.61.3/
$ ../../bin/python setup.py install
$ cd ../itws/
$ git branch 1.0 origin/1.0
$ git checkout 1.0
$ ../../bin/python setup.py install
$ cd ../shop/
$ ../../bin/python setup.py install
Create a new instance
==========================
Initialiaze instance:
::
$ ./bin/icms-init.py -r shop shop.localhost
Type your email address: [email protected]
*
* Welcome to ikaaro
* A user with administration rights has been created for you:
* username: [email protected]
* password: xxx
*
* To start the new instance type:
* icms-start.py shop.localhost
*
Start instance
===================
::
$ ./bin/icms-start.py shop.localhost
Listen :8080
Create your website
===========================
- Edit your /etc/hosts file and add:
::
127.0.0.1 shop admin.shop
- Go to http://localhost:8080/;new_resource?type=WebSite
::
firefox http://localhost:8080/;new_resource?type=WebSite
- Choose "Shop website" and set the virtual host of your shop (one per line):
- shop
- admin.shop
- See your shop front and backoffice:
::
$ firefox http://shop:8080/
$ firefox http://admin.shop:8080/