This commit is contained in:
parent
bf4c8989eb
commit
6e4bef5179
3 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
cp geofeed.csv dist
|
||||
find dist -type f -exec sed -i 's/var_lastmod/$(date)/g' {} +
|
||||
find dist -type f -exec sed -i 's/var_commithash/$(git rev-parse --short HEAD)/g' {} +
|
||||
|
||||
ncftpput -R -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER . dist/*
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"scripts": {
|
||||
"start": "parcel src/index.html src/**/index.html",
|
||||
"start": "BUILD_DATE=$(date) parcel src/index.html src/**/index.html",
|
||||
"build": "parcel build src/index.html src/**/index.html"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -43,5 +43,7 @@
|
|||
<li><a href="./services.html">Services</a></li>
|
||||
<li><a href="https://git.m724.eu/Minecon724/dn42-info">Source code</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Last modified: var_lastmod var_commithash</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue