diff --git a/dev.sh b/dev.sh index 3e452b5..8cbc86e 100755 --- a/dev.sh +++ b/dev.sh @@ -1,7 +1,7 @@ cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" tmux new-session -d -s letterbox-dev tmux rename-window web -tmux send-keys "cd web; trunk serve --release --address 0.0.0.0 --port 6758 --proxy-backend http://localhost:9345/ --proxy-rewrite=/api/ -w ../shared -w ../notmuch -w ./" C-m +tmux send-keys "cd web; trunk serve -w ../shared -w ../notmuch -w ./" C-m tmux new-window -n server tmux send-keys "cd server; cargo watch -x run -w ../shared -w ../notmuch -w ./" C-m tmux attach -d -t letterbox-dev diff --git a/web/Trunk.toml b/web/Trunk.toml new file mode 100644 index 0000000..55743ad --- /dev/null +++ b/web/Trunk.toml @@ -0,0 +1,11 @@ +[build] +release = true + +[serve] +# The address to serve on. +address = "0.0.0.0" +port = 6758 + +[[proxy]] +backend = "http://localhost:9345/" +rewrite= "/api/"