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
Copy file name to clipboardExpand all lines: docs-wysiwyg.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
-
# WYSIWIG
1
+
# WYSIWYG
2
2
If you'd like to run a local container of this server in order to see changes you make on your files on-the-fly, you've come to the right page.
3
3
4
4
[Back](README.md) to the main page.
5
5
## How to setup your local container
6
6
### Prerequisites
7
-
- Local [Docker](https://docker.com)-installation
7
+
- Local [Docker](https://docker.com)-installation (or Docker-Desktop for Windows-installations)
8
8
- Some access to the keycloak-server that's being used (may be local, or the standard remote one)
9
9
- Free port `8081` on your local machine (you may change that, but it has to be configured on the keycloak-client as a `valid redirect URL` like `http://localhost:<port>/*`)
10
10
### Installation
11
11
- Clone this repository
12
-
- Copy the contents of the directory `local-wysiwig-container` to your local host
12
+
- Copy the contents of the directory `wysiwyg-container-linux` or `wysiwyg` to your local host
13
+
-**Windows-Only:** Open Docker-Desktop UI and go to Settings -> Resources -> File Sharing. Add your directory to the shared drives this way (the `\md` subdir).
13
14
- Adjust the contents of the `.env` file
14
15
- Adjust the contents of the `keycloak.json` file
15
-
- Run `up.sh` to start your container as a persistent container
16
+
- Run `./up.sh` on linux or `./up.ps1` on windows to start your container as a persistent container
16
17
### `.env` File
17
18
18
19
| Field | Example-value | Description |
@@ -31,3 +32,9 @@ This should be self-explanatory for keycloak-users. It's the config file for the
31
32
| auth-server-url | The full URL to the server. |
32
33
| resource | The client of your application. |
33
34
| secret | The client-secret of your client. |
35
+
### Windows-Explanation
36
+
There is a bit of a problem with file mounts on windows / WSL and programs running in either of those two contexts.
37
+
While you may access `\\wsl$\<distro>\home\<user>\` from your Windows-context and `/mnt/c/utils/` from you WSL context, the file-events are not propagated over this border (and changes propagate slowly).
38
+
On Windows machines you may either choose to...
39
+
- ...fully use WSL, clone and push your repo from there using native WSL-installed tools and use the container and files in the `wysiwyg-container-linux`.
40
+
- ...fully use Windows, clone and push your repo from there using native Windows-installed tools and use the container and files in the `wysiwyg-container-windows` directory. Then you have to use Powershell to start and stop the container.
0 commit comments