You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,24 @@ Serve content read from a Libero API to the public.
8
8
Getting started
9
9
---------------
10
10
11
-
To run a website reading from two content services (`blog-articles` and `scholarly-articles`):
11
+
1. Run `docker-compose down --volumes --remove-orphans && docker-compose up --build`.
12
12
13
-
1. Create `config/packages/content_page.yaml`:
13
+
2. Open http://localhost:8080/articles/article1 to see the scholarly article `article1` in the `dev` environment.
14
+
15
+
### Configuration
16
+
17
+
The `dev` environment reads content from a [Libero dummy API](https://github.com/libero/dummy-api), using the configuration and data in [`.docker/api`](.docker/api).
18
+
19
+
Running in production
20
+
---------------------
21
+
22
+
The application is not yet stable, but Docker images are published ([`liberoadmin/browser`](https://hub.docker.com/r/liberoadmin/browser)).
23
+
24
+
To run an image reading from two content services (`blog-articles` and `scholarly-articles`), you will need the following configuration:
25
+
26
+
- Set the `API_URI` environment variable to be the root of the Libero API.
27
+
28
+
- Create `config/packages/content_page.yaml` (either by extending the image or mounting a file):
14
29
15
30
```yaml
16
31
content_page:
@@ -23,15 +38,9 @@ To run a website reading from two content services (`blog-articles` and `scholar
23
38
service: 'scholarly-articles'
24
39
```
25
40
26
-
2. Run `docker-compose -f docker-compose.yaml down --v && docker-compose -f docker-compose.yaml up --build`.
27
-
28
-
Note the `dev` environment is already preconfigured and can be accessed be running `docker-compose down -v && docker-compose up --build` instead.
29
-
30
-
3. Open http://localhost:8080/blog/foo to see the blog post `foo`.
31
-
32
41
Getting help
33
42
------------
34
43
35
44
- Report a bug or request a feature on [GitHub](https://github.com/libero/libero/issues/new/choose).
36
-
- Ask a question on the [Libero Community Slack](https://libero-community.slack.com/).
45
+
- Ask a question on the [Libero Community Slack](https://libero.pub/join-slack).
37
46
- Read the [code of conduct](https://libero.pub/code-of-conduct).
0 commit comments