cargo-remote icon indicating copy to clipboard operation
cargo-remote copied to clipboard

How to compile with watch?

Open theronic opened this issue 6 years ago • 3 comments

This is awesome! Thank you. How do I compile this with catflap and cargo watch for continuous builds?

Note that the version flag of rsync that comes with OSX by default errors out on the --info=progress2 flag, so you have to call it with env PATH=/usr/bin/local:$PATH cargo remote -r user@build-server build

theronic avatar Nov 16 '18 10:11 theronic

Since I personally don't use catflap or cargo watch I don't really know how well they integrate with cargo remote :slightly_frowning_face: maybe you can look into it? PRs are always welcome.

Regarding the rsync problem: I could hide the progress option behind a flag so you have to explicitly use it.

sgeisler avatar Nov 16 '18 20:11 sgeisler

@theronic could you have a look at #3 please? If it actually fixes the Mac OS rsync problem I'd merge it. If you wish to work on integrations with other cargo tools I can help you (then I'd probably update all the dependencies first so you don't have to deal with that ancient stuff), but since I'm not using cargo-remote at the moment I don't have much motivation for actual development.

sgeisler avatar Nov 18 '18 08:11 sgeisler

@theronic you can use cargo watch like cargo watch -s "ssh user@build-server pkill -f app ; cargo remote -r user@build-server run"

atakurt avatar Jul 18 '19 17:07 atakurt