Last active
August 3, 2020 18:22
-
-
Save jalakoo/f12cda7396046b3a9ef96db7bc8a2e46 to your computer and use it in GitHub Desktop.
Simple nodemon script that allows for deploy & start upon file save.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To make this file executable from the command line, enter: `chmod +x hot-reload.sh` | |
nodemon -x "./reload.sh" --ext py |
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
Requirements
reload.sh
exist in the same folder location (https://gist.github.com/jalakoo/c99a3382f534f84d51f2f89866471920)chmod
commandRunning
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.