File tree Expand file tree Collapse file tree 6 files changed +93
-4
lines changed Expand file tree Collapse file tree 6 files changed +93
-4
lines changed Original file line number Diff line number Diff line change 1+ # TRELLIS_CONFIG_DIR='../config'
2+ TRELLIS_SOURCE_DIR = ' ../setup'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,17 +18,19 @@ A simple way to expose static assets as a read-only <a href="https://www.w3.org/
1818To install ` static-ldp ` , follow these steps:
1919
20201 . run ` composer create-project trellis-ldp/static-ldp `
21- 2 . create a ` ./static-ldp/config/settings.yml ` file like this:
21+ 2 . create a ` ./.env.local ` file like this:
2222
2323```
24- sourceDirectory: /path/to/data/directory
24+ TRELLIS_SOURCE_DIR=' /path/to/resources'
2525```
2626
2727## Basics
2828
2929By installing ` static-ldp ` and configuring the ` sourceDirectory ` to point
3030to the location of your static resources, you have a simple, read-only linked data server.
3131
32+ The web content will be served from the ` ./public ` directory.
33+
3234## LDP Resources
3335
3436Individual files are served as ` ldp:NonRDFSource ` resources,
Original file line number Diff line number Diff line change 1+ RewriteEngine on
2+ RewriteRule ^ index.php [L]
Original file line number Diff line number Diff line change 1+ Static-LDP
2+
3+ To set up static-ldp, please create a .env.local file with the following content:
4+
5+ TRELLIS_SOURCE_DIR='/path/to/resources'
Original file line number Diff line number Diff line change 1+ {
2+ "psr/cache": {
3+ "version": "1.0.1"
4+ },
5+ "psr/simple-cache": {
6+ "version": "1.0.1"
7+ },
8+ "symfony/cache": {
9+ "version": "v4.1.7"
10+ },
11+ "symfony/console": {
12+ "version": "3.3",
13+ "recipe": {
14+ "repo": "github.com/symfony/recipes",
15+ "branch": "master",
16+ "version": "3.3",
17+ "ref": "181d766db0eb468f41337f9b2d9d5b61ba1ee441"
18+ }
19+ },
20+ "symfony/dependency-injection": {
21+ "version": "v4.1.7"
22+ },
23+ "symfony/dotenv": {
24+ "version": "v4.1.7"
25+ },
26+ "symfony/finder": {
27+ "version": "v4.1.7"
28+ },
29+ "symfony/flex": {
30+ "version": "1.0",
31+ "recipe": {
32+ "repo": "github.com/symfony/recipes",
33+ "branch": "master",
34+ "version": "1.0",
35+ "ref": "5f8a51c0fad684396f6b6c0fd770e043439cb632"
36+ }
37+ },
38+ "symfony/framework-bundle": {
39+ "version": "3.3",
40+ "recipe": {
41+ "repo": "github.com/symfony/recipes",
42+ "branch": "master",
43+ "version": "3.3",
44+ "ref": "9ec493d6f3575c54671493d635fa4b68658022ab"
45+ }
46+ },
47+ "symfony/phpunit-bridge": {
48+ "version": "4.1",
49+ "recipe": {
50+ "repo": "github.com/symfony/recipes",
51+ "branch": "master",
52+ "version": "4.1",
53+ "ref": "b4c7d939cac9a67e02366fa7971746e9cbf1dad0"
54+ }
55+ },
56+ "symfony/process": {
57+ "version": "v4.1.7"
58+ },
59+ "symfony/twig-bridge": {
60+ "version": "v4.1.7"
61+ },
62+ "symfony/twig-bundle": {
63+ "version": "3.3",
64+ "recipe": {
65+ "repo": "github.com/symfony/recipes",
66+ "branch": "master",
67+ "version": "3.3",
68+ "ref": "369b5b29dc52b2c190002825ae7ec24ab6f962dd"
69+ }
70+ },
71+ "symfony/web-server-bundle": {
72+ "version": "3.3",
73+ "recipe": {
74+ "repo": "github.com/symfony/recipes",
75+ "branch": "master",
76+ "version": "3.3",
77+ "ref": "dae9b39fd6717970be7601101ce5aa960bf53d9a"
78+ }
79+ }
80+ }
You can’t perform that action at this time.
0 commit comments