Skip to content

Commit 6684a04

Browse files
committed
Update configuration, readme to work with flex
1 parent c4ff37c commit 6684a04

File tree

6 files changed

+93
-4
lines changed

6 files changed

+93
-4
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TRELLIS_CONFIG_DIR='../config'
2+
TRELLIS_SOURCE_DIR='../setup'

.env.dist

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ A simple way to expose static assets as a read-only <a href="https://www.w3.org/
1818
To install `static-ldp`, follow these steps:
1919

2020
1. 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

2929
By installing `static-ldp` and configuring the `sourceDirectory` to point
3030
to 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

3436
Individual files are served as `ldp:NonRDFSource` resources,

public/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
RewriteEngine on
2+
RewriteRule ^ index.php [L]

setup/getting_started.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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'

symfony.lock

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
}

0 commit comments

Comments
 (0)