Skip to content

Instantly share code, notes, and snippets.

@jalakoo
Last active August 3, 2020 18:22
Show Gist options
  • Save jalakoo/f12cda7396046b3a9ef96db7bc8a2e46 to your computer and use it in GitHub Desktop.
Save jalakoo/f12cda7396046b3a9ef96db7bc8a2e46 to your computer and use it in GitHub Desktop.
Simple nodemon script that allows for deploy & start upon file save.
#!/bin/bash
# To make this file executable from the command line, enter: `chmod +x hot-reload.sh`
nodemon -x "./reload.sh" --ext py
@jalakoo
Copy link
Author

jalakoo commented Oct 4, 2019

Requirements

Running

In the folder where the scripts exist (which should be in the same folder as your build files / or above), run ./hot-reload.sh

Stopping

CTRL+C to kill the hot-reloading script

Misc

Note that you should run aai app configure before running this hot-reload script for the first time, and whenever changing devices or networks.

@jalakoo
Copy link
Author

jalakoo commented Aug 3, 2020

Sample reload.sh file:

#!/bin/bash

aai app install
aai app start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment