mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
build: Fix hot reloading of UI, improve docs
This commit is contained in:
parent
847e6bfb5b
commit
beb4981c22
3 changed files with 12 additions and 10 deletions
10
README.md
10
README.md
|
@ -83,19 +83,21 @@ skaffold run -p lemmy--prod
|
||||||
|
|
||||||
#### Kubernetes
|
#### Kubernetes
|
||||||
|
|
||||||
This requires:
|
##### Requirements
|
||||||
|
|
||||||
- Local or remote Kubernetes Cluster, i.e. [`minikube`](https://kubernetes.io/docs/tasks/tools/install-minikube/)
|
- Local or remote Kubernetes cluster, i.e. [`minikube`](https://kubernetes.io/docs/tasks/tools/install-minikube/)
|
||||||
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
|
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
|
||||||
- [`skaffold`](https://skaffold.dev/)
|
- [`skaffold`](https://skaffold.dev/)
|
||||||
|
|
||||||
After satisfying the requirements, run the following:
|
##### Running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
skaffold dev -p lemmy--dev
|
skaffold dev -p lemmy--dev
|
||||||
```
|
```
|
||||||
|
|
||||||
And goto http://localhost:4444.
|
And goto http://localhost:4444 (automatically proxies to localhost, both if the cluster is local or remote).
|
||||||
|
|
||||||
|
It hot-reloads the UI and automatically recompiles the server.
|
||||||
|
|
||||||
#### Non-Kubernetes
|
#### Non-Kubernetes
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,8 @@ spec:
|
||||||
name: lemmy-server--dev
|
name: lemmy-server--dev
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 512Mi
|
||||||
cpu: 256m
|
cpu: 512m
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8536
|
- containerPort: 8536
|
||||||
---
|
---
|
||||||
|
|
|
@ -9,15 +9,15 @@ profiles:
|
||||||
docker:
|
docker:
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
sync:
|
sync:
|
||||||
"**/*.rs": src/
|
"***/*.rs": .
|
||||||
- image: registry.gitlab.com/pojntfx/lemmy/ui.dev
|
- image: registry.gitlab.com/pojntfx/lemmy/ui.dev
|
||||||
context: ui
|
context: ui
|
||||||
docker:
|
docker:
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
sync:
|
sync:
|
||||||
"**/*.ts": src/
|
"***/*.ts": .
|
||||||
"**/*.tsx": src/
|
"***/*.tsx": .
|
||||||
"**/*.css": src/
|
"***/*.css": .
|
||||||
deploy:
|
deploy:
|
||||||
kubectl:
|
kubectl:
|
||||||
manifests:
|
manifests:
|
||||||
|
|
Loading…
Reference in a new issue