Added seconds tag to stratux.appcache for page reloading if built code has changed

pull/520/head
Jim Jacobsen 2016-11-14 05:00:38 +00:00
rodzic 92e48862e2
commit 5058d0e4e1
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
ifeq ($(statuxBuild),)
stratuxBuild=`git log -n 1 --pretty=%H`
buildtime=`date +%s`
endif
all:
@ -34,4 +35,5 @@ all:
cp index.html /var/www
cp stratux.appcache /var/www
# Mark the manifest with the git hash.
echo "# build time: " ${buildtime} >>/var/www/stratux.appcache
echo "# Stratux build: " ${stratuxBuild} >>/var/www/stratux.appcache