-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathINSTALL
More file actions
141 lines (112 loc) · 4.28 KB
/
Copy pathINSTALL
File metadata and controls
141 lines (112 loc) · 4.28 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
***********************************
* Install all needed dependancies *
***********************************
sudo apt-get install nodejs gettext postgresql-client postgresql openjdk-6-jdk openjdk-6-doc openjdk-6-source lighttpd qt4-dev-tools xsel rlwrap build-essential visitors libpg-java
************************************
* Install and configure lighttpd *
************************************
Install lighttpd:
apt-get install lighttpd
Create a symbolic link of '.../deployment/files/fastcgi.conf' in '/etc/lighttpd/conf-enabled/':
cd /etc/lighttpd/conf-enabled/
ln -s /home/fred/bloatit/deployment/files/fastcgi.conf
Create a symbolic link of '.../deployment/files/rewrite.lighttpd.conf' in '/etc/lighttpd/conf-enabled/':
cd /etc/lighttpd/conf-enabled/
ln -s /home/fred/bloatit/deployment/files/rewrite.lighttpd.conf
========================
= MODIFY lighttpd.conf =
========================
In '/etc/lighttpd/lighttpd.conf' :
-> Modify the filed 'server.document-root' to 'www' folder in bloatit.
-> Example:
server.document-root = "/home/fred/projets/bloatit/www"
Uncomment or add '"mod-accesslog"' in 'server.modules'
Uncomment or add '"mod_expire"' in 'server.modules'
# Note : if mod_rewrite is activated, remove or comment it
-> Add line :
server.error-handler-404 = "/en/dopagenotfound"
-> Add the following lines :
# make an external redirect
# from any www.host (with www.) to the host (without www.)
$HTTP["host"] =~ "^www\.(.*)$" {
url.redirect = ( "^/(.*)" => "http://%1/$1" )
}
# Access logs
accesslog.filename = "/var/log/lighttpd/access.log"
#30Mb in Kb
server.max-request-size= 30000
======================
= Restart lighttpd =
======================
Restart lighttpd config:
service lighttpd restart
Verify the loading in logs:hibernate.cfg.xml not found
cat /var/log/lighttpd/error.log
**********************
* Install postgresql *
**********************
# Install the postgresql package
sudo apt-get install postgresql
sudo apt-get install postgresql-client
# Use the postgres User to create a new DB and a new User
sudo su postgres
psql
#> CREATE USER bloatit;
#> ALTER ROLE bloatit WITH createdb;
#> CREATE DATABASE bloatit OWNER bloatit;
#> CREATE DATABASE bloatit_test OWNER bloatit;
#> ALTER USER bloatit WITH ENCRYPTED PASSWORD 'passe' ;
#>\q
# change the authentification method
vim /etc/postgresql/8.4/main/pg_hba.conf
# Go to the end of the file.
# change ident to md5 [EXCEPT FOR THE USER "postgres"]
#leave the postgres session
exit
# restart the server
sudo service postgresql restartliquibase-launcher.sh
# Initialize the database
# go to <Project Home>/main/liquibase
# execute liquibase-launcher.sh update
cd main/liquibase
./liquibase-launcher.sh update
************************************
* Install gettext *
************************************
sudo apt-get install gettext
************************************
* Configure the java server *
************************************
copy the files/folders from etc/ to ~/.config/bloatit/
# There are value to configure, see the comments in the files.
copy the files/folders from share/ to ~/.local/share/bloatit/
************************************
* Get a fake connection with bank *
************************************
copy pathfile file to your config path
cp ~/elveos/dev/etc/pathfile ~/.config/bloatit/pathfile
edit pathfile to point to the correct URI :
vim ~/.config/bloatit/pathfile
Modify :
- F_DEFAULT!/home/yoann/elveos/dev/share/mercanet/parmcom.mercanet!
- F_PARAM!/home/yoann/elveos/dev/share/mercanet/parmcom!
- F_CERTIFICATE!/home/yoann/elveos/dev/share/mercanet/certif!
where /home/yoann/elveos/dev is the root to your development folder
************************************
* Configure access right *
************************************
The lighttpd process will need to read in ~/.local/share (depending of java
process user). You may need to run the java process with the lighttp
d user or
change the right:
chmod 777 ~/.local
chmod 777 ~/.local/share
Create directory /var/local/lucene/indexes and give write right to it.
sudo mkdir -p /var/local/lucene/indexes
sudo chmod 777 /var/local/lucene/indexes
************************************
* Install and run *
************************************
mvn clean install -Dmaven.test.skip=true
cd main
mvn exec:java