forked from tsugiproject/tsugi-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (46 loc) · 1.48 KB
/
index.php
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
<html>
<head>
<title>
Tsugi Static Files (Cross-Language)
</title>
</head>
<body style="font-family: sans-serif;">
<h1>Tsugi Static Files (Cross-Language)</h1>
<p>
This is part of the
<a href="https://github.com/tsugiproject/tsugi" target="_blank">Tsugi Project</a>.
This holds the static files used by the Tsugi framework.
These files are shared between the
Tsugi implementations in various languages.
</p>
<p>
This code is stored in the
<a href="https://github.com/tsugiproject/tsugi-static"
target="_blank">https://github.com/tsugiproject/tsugi-static</a> -
if you need to make a change to these files, please fork that repo
and send a pull request.
<p>
You can check this out locally into the <code>htdocs</code> folder next
to your Tsugi
developer console <code>(/tsugi)</code> or just use the copy stored
in the CloudFlare CDN at:
<pre>
https://static.tsugi.org
</pre>
</p>
<p>
If you don't specify the <code>staticroot</code> in your Tsugi <code>config.php</code>
it will use the above
URL to serve static content. If you want to serve it locally if you are on
a plane or behind a firewall check it out and then set the configuration similar
to the following:
<pre>
$CFG->staticroot = $CFG->wwwroot . '/../tsugi-static'; // Relative
$CFG->staticroot = 'http://localhost/tsugi-static'; // Absolute
$CFG->staticroot = 'http://localhost:8888/tsugi-static'; // MAMP
$CFG->staticroot = 'https://static.tsugi.org'; // MAMP
</pre>
Or something similar.
</p>
</body>
</html>