Skip to content

Commit 1812044

Browse files
committed
backend: ZSD_SERVE_FROM_WEBAPPS -> ZSD_SERVE_FROM_WEBAPP
1 parent 111922f commit 1812044

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ When you select a snapshot, and
113113

114114
### for dev:
115115

116-
ZSD_SERVE_FROM_WEBAPPS=YES ./zfs-snap-diff <ZFS_NAME>
116+
ZSD_SERVE_FROM_WEBAPP=YES ./zfs-snap-diff <ZFS_NAME>
117117

118-
* serve static content from webapps dir
118+
* serve static content from webapp dir
119119

120120

121121

web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func listenAndServe(addr string, frontendConfig FrontendConfig) {
2626
http.HandleFunc("/list-dir", verifyParamExistsHndl("path", verifyParamUnderZMPHndl("path", listDirHndl)))
2727
http.HandleFunc("/read-file", verifyParamExistsHndl("path", verifyParamUnderZMPHndl("path", readFileHndl)))
2828
// serve static content from 'webapps' directory if environment has 'ZSD_SERVE_FROM_WEBAPPS' set (for dev)
29-
if envHasSet("ZSD_SERVE_FROM_WEBAPPS") {
30-
log.Println("serve from webapps")
29+
if envHasSet("ZSD_SERVE_FROM_WEBAPP") {
30+
log.Println("serve from webapp")
3131
http.Handle("/", http.FileServer(http.Dir("webapp")))
3232
} else {
3333
http.HandleFunc("/", serveStaticContentFromBinaryHndl)

0 commit comments

Comments
 (0)