mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
deploy: exclude storage/{tmp,documents,theses,triage,backups,logs} from rsync + fix .env perm check to 640
This commit is contained in:
9
justfile
9
justfile
@@ -58,7 +58,12 @@ deploy:
|
||||
--exclude 'storage/maintenance.flag' \
|
||||
--exclude 'storage/fixtures' \
|
||||
--exclude 'storage/docs' \
|
||||
--exclude 'storage/tmp/filepond/*' \
|
||||
--exclude 'storage/tmp/' \
|
||||
--exclude 'storage/documents/' \
|
||||
--exclude 'storage/theses/' \
|
||||
--exclude 'storage/triage/' \
|
||||
--exclude 'storage/backups/' \
|
||||
--exclude 'storage/logs/' \
|
||||
--exclude 'var/' \
|
||||
app/ xamxam:/var/www/xamxam/
|
||||
# Deploy nginx config + fix permissions + reload (single server-side run)
|
||||
@@ -177,7 +182,7 @@ deploy-verify-permissions:
|
||||
owner=$(echo "$perms" | awk '{print $2}')
|
||||
group=$(echo "$perms" | awk '{print $3}')
|
||||
case "$path" in
|
||||
*/storage/xamxam.db|*/storage/*.db)
|
||||
*/storage/xamxam.db|*/storage/*.db|*/*/.env)
|
||||
expected_perm="660" ;;
|
||||
*)
|
||||
expected_perm="664" ;;
|
||||
|
||||
Reference in New Issue
Block a user