]> Untitled Git - lemmy.git/commitdiff
build: Fix hot reloading of UI, improve docs
authorFelix Pojtinger <felix@pojtinger.com>
Sat, 27 Apr 2019 01:39:06 +0000 (03:39 +0200)
committerFelix Pojtinger <felix@pojtinger.com>
Sat, 27 Apr 2019 01:39:06 +0000 (03:39 +0200)
README.md
server/stack.dev.yaml
skaffold.yaml

index 33798d14a9cff5dd3da496c49cfa67eefd4a60bd..cdd8c34c7a3c74f2e23260b4600af0c4995c5d65 100644 (file)
--- a/README.md
+++ b/README.md
@@ -83,19 +83,21 @@ skaffold run -p lemmy--prod
 
 #### 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/)
 - [`skaffold`](https://skaffold.dev/)
 
-After satisfying the requirements, run the following:
+##### Running
 
 ```bash
 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
 
index 9e00e4fb0f488c51f9a5e8a2b1bde71a05f4f1fd..7c6905b3b2d2e3e0947ecf07806f09c7ac427937 100644 (file)
@@ -93,8 +93,8 @@ spec:
                 name: lemmy-server--dev
           resources:
             limits:
-              memory: 256Mi
-              cpu: 256m
+              memory: 512Mi
+              cpu: 512m
           ports:
             - containerPort: 8536
 ---
index d8ab281ba97453345de6be2677ac84c7e1fbb902..88b7a0de82ff6f1403aaa1c0c48a9f2252e080d5 100644 (file)
@@ -9,15 +9,15 @@ profiles:
           docker:
             dockerfile: Dockerfile.dev
           sync:
-            "**/*.rs": src/
+            "***/*.rs": .
         - image: registry.gitlab.com/pojntfx/lemmy/ui.dev
           context: ui
           docker:
             dockerfile: Dockerfile.dev
           sync:
-            "**/*.ts": src/
-            "**/*.tsx": src/
-            "**/*.css": src/
+            "***/*.ts": .
+            "***/*.tsx": .
+            "***/*.css": .
     deploy:
       kubectl:
         manifests: