mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-19 06:22:41 +00:00
use bash script to deploy
This commit is contained in:
parent
1d76a71f42
commit
5606c44ced
3 changed files with 24 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
||||||
!**/*.json
|
!**/*.json
|
||||||
!**/*.gitignore
|
!**/*.gitignore
|
||||||
!*/
|
!*/
|
||||||
|
!push
|
||||||
22
push
Executable file
22
push
Executable file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SRC="public"
|
||||||
|
ZIP="ps.zip"
|
||||||
|
|
||||||
|
echo "snap $SRC > $ZIP ..."
|
||||||
|
cd $SRC
|
||||||
|
rm $ZIP
|
||||||
|
zip -r -9 $ZIP ./
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
echo "update repository ..."
|
||||||
|
git pull
|
||||||
|
git add .
|
||||||
|
git commit -m "$(date +%s)"
|
||||||
|
git push
|
||||||
|
|
||||||
|
echo "update remote host (localnet) ..."
|
||||||
|
rclone sync $SRC localnet: --update -v
|
||||||
|
|
||||||
|
echo "update remote host (yesterweb) ..."
|
||||||
|
rclone sync $SRC yesterweb: --update --no-check-certificate -v
|
||||||
12
webdav.json
12
webdav.json
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"/public": {
|
|
||||||
"url": "https://ps.cities.yesterweb.org:1994/",
|
|
||||||
"ignoreSSLErrors": true,
|
|
||||||
"uploadOnSave": {
|
|
||||||
"enabled": true,
|
|
||||||
"pattern": [
|
|
||||||
".gmi$"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue