dnote/scripts/dev.sh
Sung Won Cho fa1da50fc5
Implement state-based sync (#144)
* Migrate uuids of books that already exist in server

* Remove actions

* Add dirty flag for notes and books

* Drop actions table

* Implement sync

* Add debug

* Update uuid after posting resources to the server

* Fix dev script
2018-12-02 11:04:16 +10:00

10 lines
296 B
Bash
Executable file

#!/bin/bash
# dev.sh builds a new binary and replaces the old one in the PATH with it
sudo rm "$(which dnote)" $GOPATH/bin/cli
# change tags to darwin if on macos
go install -ldflags "-X main.apiEndpoint=http://127.0.0.1:5000" --tags "linux" .
sudo ln -s $GOPATH/bin/cli /usr/local/bin/dnote