Skip to content

Instantly share code, notes, and snippets.

@Nagasaki45
Last active January 15, 2018 17:19
Show Gist options
  • Save Nagasaki45/c237e85a6c30faf29e9daac681e07309 to your computer and use it in GitHub Desktop.
Save Nagasaki45/c237e85a6c30faf29e9daac681e07309 to your computer and use it in GitHub Desktop.
Manage your Bela project easily
#!/usr/bin/env bash
# Stop Bela upon keyboard interrupts
stop_bela() {
ssh [email protected] "cd ~/Bela && make stop"
}
trap stop_bela SIGINT
# Main thingy: upload compile and start
scp -rp $1 [email protected]:~/Bela/projects/
ssh [email protected] "cd ~/Bela && make Bela PROJECT=$1 && make run PROJECT=$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment