Skip to content

Commit

Permalink
Fixed that setup on docker was unable to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Aug 17, 2022
1 parent ebda2fe commit 648baae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/gokapi/Main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (

// Version is the current version in readable form.
// The go generate call below needs to be modified as well
const Version = "1.6.0"
const Version = "1.6.1"

//go:generate sh "../../build/setVersionTemplate.sh" "1.6.0"
//go:generate sh "../../build/setVersionTemplate.sh" "1.6.1"
//go:generate sh -c "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" ../../internal/webserver/web/static/js/ && echo Copied wasm_exec.js"
//go:generate sh -c "GOOS=js GOARCH=wasm go build -o ../../internal/webserver/web/main.wasm github.com/forceu/gokapi/cmd/wasmdownloader && echo Compiled Downloader WASM module"
//go:generate sh -c "GOOS=js GOARCH=wasm go build -o ../../internal/webserver/web/e2e.wasm github.com/forceu/gokapi/cmd/wasme2e && echo Compiled E2E WASM module"
Expand Down
7 changes: 6 additions & 1 deletion internal/configuration/setup/templates/setup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@
<div class="form-group">
<div class="col-sm-8">
<label for="port">Port:</label>
<input type="number" class="form-control" id="port" name="port" value="53842" min="1" max="65535" placeholder="Port number" data-min="1" data-validate="validateMinLength" required onChange="urlParamChanged()" {{ if .IsDocker }}disabled{{ end }}>
{{ if .IsDocker }}
<input type="number" class="form-control" id="port" value="53842" placeholder="Port number" disabled>
<input type="hidden" class="form-control" name="port" value="53842">
{{ else }}
<input type="number" class="form-control" id="port" name="port" value="53842" min="1" max="65535" placeholder="Port number" data-min="1" data-validate="validateMinLength" required onChange="urlParamChanged()">
{{ end }}
</div><br><br><br>


Expand Down
2 changes: 1 addition & 1 deletion internal/webserver/web/templates/string_constants.tmpl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{define "app_name"}}Gokapi{{end}}
{{define "version"}}1.6.0{{end}}
{{define "version"}}1.6.1{{end}}

0 comments on commit 648baae

Please sign in to comment.