cargo-remote
cargo-remote copied to clipboard
How to compile with watch?
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
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.
@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.
@theronic you can use cargo watch like cargo watch -s "ssh user@build-server pkill -f app ; cargo remote -r user@build-server run"