-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_instructions.txt
55 lines (42 loc) · 1.21 KB
/
test_instructions.txt
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
Test instructions
-----------------
1) Set up a Linux server or VM with Apache, MySQL, and PHP.
You'll need root access to configure Apache.
2) Clone the repo, which is currently at
https://github.com/davidpanderson/hera
3) create MySQL database "hera_lib"
> mysql
MariaDB [(none)]> create database hera_lib;
Make sure it's accessible (R/W) by both you and Apache.
4) create the tables:
> mysql hera_lib < hl_schema.sql
> mysql hera_lib < hl_constraints.sql
5) add test data
> ./db_init.php test_setup
6) copy or symlink the following to a directory served by Apache at some URL:
db_util.inc
hl_db.inc
hl_rpc_handler.php
hl.php
hl_web_util.inc
hera_util.inc
mc_db.inc
mc_rpc_handler.php
7) create ~/.hera.cfg with the form
{
"sites":[
{
"name":"test",
"url":"http://isaac.ssl.berkeley.edu/test",
"authenticator":"fd23001b4946a0a99737edc9e0a9e866"
}
]
}
The authenticators are from 5).
The URL is from 6).
8) add sample data for observations and files
> ./make_sample_files.php
9) Visit URL/hl.php in a browser and check observations and files
10) To test copy:
./test_copy.php
s