Page Menu
Home
Search
Configure Global Search
Log In
Files
F8215991
rsync_ui.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 13, 11:07 AM
Size
877 B
Mime Type
text/x-shellscript
Expires
Sun, Dec 15, 11:07 AM (2 d)
Engine
local-disk
Format
Raw Data
Handle
fe/9d/fe40a1d83034ce1735f4ae08841e
Attached To
rA Attract
rsync_ui.sh
View Options
#!/usr/bin/env bash
set
-e
ATTRACT_DIR
=
"
$(
dirname
"
$(
readlink -f
"
$0
"
)
"
)
"
if
[
! -d
"
$ATTRACT_DIR
"
]
;
then
echo
"Unable to find Attract dir '
$ATTRACT_DIR
'"
exit
1
fi
ASSETS
=
"
$ATTRACT_DIR
/attract/static/assets/"
TEMPLATES
=
"
$ATTRACT_DIR
/attract/templates/attract"
if
[
! -d
"
$ASSETS
"
]
;
then
echo
"Unable to find assets dir
$ASSETS
"
exit
1
fi
cd
$ATTRACT_DIR
if
[
$(
git rev-parse --abbrev-ref HEAD
)
!
=
"production"
]
;
then
echo
"You are NOT on the production branch, refusing to rsync_ui."
>
&
2
exit
1
fi
echo
echo
"*** GULPA GULPA ***"
./gulp --production
echo
echo
"*** SYNCING ASSETS ***"
# Exclude files managed by Git.
rsync -avh
$ASSETS
--exclude js/vendor/ root@cloud.blender.org:/data/git/attract/attract/static/assets/
echo
echo
"*** SYNCING TEMPLATES ***"
rsync -avh
$TEMPLATES
root@cloud.blender.org:/data/git/attract/attract/templates/
Event Timeline
Log In to Comment