forked from wtsi-npg/npg_tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
57 lines (40 loc) · 1.71 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
Deployment
-------------------
export PERL_MM_USE_DEFAULT=1 #automatic cpan modules installation
eval $(perl -Mlocal::lib=/my/perl)
perl Build.PL --install_base /my/perl
./Build installdeps --cpan_client 'cpan -i'
./Build test
./Build install
./Build webinstall #installs additional files needed for a web server
A file with database credentials should be in .npg directory, which should be located in the user's home directory. If the $HOME variable is not set in the shell, the npg directory migh tbe located in the directory where the code is running. The name of the file should be npg_tracking-Schema; it should have content similar to the following:
dbhost=localhost
dbport=3306
dbuser=root
dbpass=
dbname=npgt
Dev web server setup
--------------------
In you git checkout, before deploying the code
edit data/config.ini to include credentials for a dev database by adding a section like this:
[dev]
dbhost=localhost
dbport=3306
dbuser=root
dbpass=
dbname=npgt
edit data/httpd.conf - set correct paths, locations of libraries and the port number
follow the instructions in the file on commenting/uncommenting lines
The following two files are not copied by the deployment procedure, have to be copied manually
cp data/config.ini /my/perl/data/config.ini
cp data/httpd.conf /my/perl
The following apache instructions are valid for apache v2.2.18
cd /my/perl
mkdir logs
ln -s /path/to/apache/conf conf #softlink apache's config directory
cd data
ln -s . prodsoft
ln -s . npg
cd ..
/path/to/apache/bin/apachectl -f $PWD/httpd.conf -k restart
Assuming the server is running on my_host port 9959, the site URL is http://my_host:9959/cgi-bin/npg and http://my_host:9959/perl/npg (under mod perl)