forked from projectestac/sinapsi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
87 lines (58 loc) · 2.13 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
Installation of Sinapsi
Copyright (C) 2018 Department of Education, Government of Catalonia
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
======================================================================
Dependencies
------------
This project was built using the frameworks Laravel 5.4 for the
backend and Angular 6.0 on the frontend.
Server requeriments:
* Apache >= 2.4
* MySQL >= 5.6
* PHP >= 5.6.4
* Mbstring PHP Extension
* PDO PHP Extension
* Tokenizer PHP Extension
* XML PHP Extension
Build requeriments:
* Make >= 4.1
* Composer >= 1.4
* Node.js >= 7.10
* Angular CLI >= 6.0
Compile the software
--------------------
Make sure all the requeriments are met an issue:
$ make
Compilation options
-------------------
Useful compilation parameters are:
root Root URL path (default: )
target Target environment (default: production)
locales Locales to build (default: en ca es)
For example:
$ make root=/sinapsi target=production version=1.0
Install the software
--------------------
After the make command finishes without errors, you may want to configure
the application before installing it. Open the file ./build/.env and set
the parameters to suit your needs.
Then run the intallation target:
$ sudo make install
You shall be able to access the application at http://sinapsi.localhost
when the installation finishes.
Install options
---------------
In order to install the software on your system, you may need to provide
some of the following parameters to the make command:
wwwdir Installation folder (default: /var/www)
sitedir Apache sites folder (default: /etc/apache2/sites-available)
user Apache user (default: www-data)
group Apache group (default: www-data)
target Target environment (default: production)
For example:
$ sudo make install wwwdir=/opt user=httpd group=httpd
Manual installation
-------------------
Please see the DEPLOY file.