mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Run server on port 3001 (#687)
* Simplify docker compose file * Run on port 3001
This commit is contained in:
parent
162ceb4ad1
commit
ca5af5e34a
17 changed files with 45 additions and 36 deletions
|
|
@ -57,7 +57,7 @@ build() {
|
|||
|
||||
# build binary
|
||||
destDir="$outputDir/$platform-$arch"
|
||||
ldflags="-X main.apiEndpoint=https://localhost:3000/api -X main.versionTag=$version"
|
||||
ldflags="-X main.apiEndpoint=https://localhost:3001/api -X main.versionTag=$version"
|
||||
tags="fts5"
|
||||
|
||||
pushd "$projectDir"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ dir=$(dirname "${BASH_SOURCE[0]}")
|
|||
sudo rm -rf "$(which dnote)" "$GOPATH/bin/cli"
|
||||
|
||||
# change tags to darwin if on macos
|
||||
go install -ldflags "-X main.apiEndpoint=http://127.0.0.1:3000/api" --tags "linux fts5" "$dir/../../pkg/cli"
|
||||
go install -ldflags "-X main.apiEndpoint=http://127.0.0.1:3001/api" --tags "linux fts5" "$dir/../../pkg/cli"
|
||||
|
||||
sudo ln -s "$GOPATH/bin/cli" /usr/local/bin/dnote
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue