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: README.en.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,14 @@ Then start with your workspace:
113
113
neocode --workdir /path/to/your/project
114
114
```
115
115
116
+
To launch the browser-based Web UI:
117
+
118
+
```bash
119
+
neocode web
120
+
```
121
+
122
+
Tagged release builds already embed `web/dist` into the `neocode` binary, so the target machine does not need Node.js or npm. When running from source, missing `web/dist` still triggers the local frontend build path.
logger.Println("frontend source is newer than build output, rebuilding...")
86
-
needBuild=true
86
+
switch {
87
+
caseoptions.StaticDir!="":
88
+
iferr!=nil {
89
+
returnfmt.Errorf("invalid --static-dir: %w", err)
87
90
}
88
-
}
89
-
90
-
ifneedBuild {
91
+
caseerr!=nil&&embeddedAssetsAvailable:
92
+
logger.Println("frontend dist not found, falling back to embedded assets")
93
+
staticDir=""
94
+
caseerr!=nil:
91
95
ifoptions.SkipBuild {
92
-
returnfmt.Errorf("frontend needs rebuild and --skip-build is set")
96
+
returnfmt.Errorf("frontend assets missing and --skip-build is set")
93
97
}
94
98
webDir:=findWebSourceDir()
95
99
ifwebDir=="" {
96
-
iferr!=nil {
97
-
returnfmt.Errorf(
98
-
"frontend assets unavailable: %w; release packages must include the web/ source directory, or source builds must run from the project root or use --static-dir",
99
-
err,
100
-
)
101
-
}
102
100
returnfmt.Errorf(
103
-
"web source directory not found; release packages must include web/, or source builds must run from project root or set --static-dir",
101
+
"frontend assets unavailable: %w; source builds must run from the project root, provide --static-dir, or use a release binary with embedded web assets",
0 commit comments