mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-12 04:15:13 -05:00
Initial commit of BEMANI Utilities to GitHub.
This commit is contained in:
13
examples/preload
Executable file
13
examples/preload
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/bash
|
||||
# A utility that hits your web frontend, causing the cache for JSX
|
||||
# translations to be rendered. Call this after/during your installation
|
||||
# so that the first web request after an installation doesn't need to
|
||||
# warm the cache.
|
||||
|
||||
cd /path/to/your/virtualenv/lib/python3.6/site-packages/bemani/frontend/static
|
||||
for url in $(find -name "*.react.js" | sed 's,^\.,https://your-domain.com/jsx,'); do
|
||||
echo "Priming $url..."
|
||||
curl $url --silent -H 'Cache-Control: no-cache' > /dev/null
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
Reference in New Issue
Block a user