mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-09-24 06:14:46 -04:00
rename static-deploy
This commit is contained in:
parent
8b8ce937f6
commit
15318cab02
2 changed files with 5 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,6 +4,6 @@
|
||||||
/cloud-archive-password.txt
|
/cloud-archive-password.txt
|
||||||
/lock
|
/lock
|
||||||
/nginx-tmp/
|
/nginx-tmp/
|
||||||
/static-deploy/
|
/static-production/
|
||||||
/static-tmp/
|
/static-tmp/
|
||||||
/venv/
|
/venv/
|
||||||
|
|
|
@ -16,9 +16,9 @@ fi
|
||||||
remote=root@matrix.grapheneos.org
|
remote=root@matrix.grapheneos.org
|
||||||
|
|
||||||
# use last modified timestamps from matrix.grapheneos.org
|
# use last modified timestamps from matrix.grapheneos.org
|
||||||
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate $remote:/srv/element.grapheneos.org/ static-deploy
|
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate $remote:/srv/element.grapheneos.org/ static-production
|
||||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-deploy
|
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-production
|
||||||
for f in static-deploy/**.*(br|gz); do
|
for f in static-production/**.*(br|gz); do
|
||||||
touch -r "${f%.*}" "$f"
|
touch -r "${f%.*}" "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ echo target is $target
|
||||||
echo
|
echo
|
||||||
|
|
||||||
ssh $remote "rm -rf $target && cp -a $active $target"
|
ssh $remote "rm -rf $target && cp -a $active $target"
|
||||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-deploy/ $remote:$target
|
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-production/ $remote:$target
|
||||||
ssh $remote "ln -snf $target /srv/element.grapheneos.org && sync /srv/element.grapheneos.org"
|
ssh $remote "ln -snf $target /srv/element.grapheneos.org && sync /srv/element.grapheneos.org"
|
||||||
|
|
||||||
echo "root $target;" > nginx-tmp/root_element.grapheneos.org.conf
|
echo "root $target;" > nginx-tmp/root_element.grapheneos.org.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue