Broadcast changes in your assets to the browser.
AssetReload uses WebSockets to broadcast asset changes to the browser.
Install with pip:
pip install assetreload
If you don’t have it installed, use easy_install instead.
Once setup, cd into a directory you would like to monitor for changes and start the server by running assetreload.
There are optional arguments:
- path defines the directory to monitor (defaults to current directory)
- port the port on which to start the server (defaults to 8888)
assetreload –path=~/mysite/ –port=8889
### In the browser
Make a copy of assetreload.js in your project, and include the following:
<script id=”assetreload” src=”assetreload.js”></script>
You can automatically generate assetreload.js into a directory of your choosing by running:
### Version 1.1
- Added: error handling for incorrectly configured ports
- Removed: need to specify a list of files to watch - files are now handled automatically
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size assetreload-1.1.tar.gz (3.3 kB)||File type Source||Python version None||Upload date||Hashes View|