Skip to content

Commit c3150fd

Browse files
committed
more deploy tweaking
1 parent c499011 commit c3150fd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

deploy.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ tar czf build/docs.tgz build/docs
1313
# The "*" in front of dele makes the copy continue if the command fails. This
1414
# makes it so new branches don't need to have someone manually make a file to
1515
# delete (see the -Q option in `man curl`).
16+
#
17+
# We copy the file into a version with the "-copy" suffix, and then move it
18+
# over, so that commands that poll on the server won't process a
19+
# partially-copied file. Note that the moving commands act as if the ftp
20+
# command has moved into the pyret-docs/$BRANCH directory
1621

1722
curl -u $FTP_USER:$FTP_PASS \
18-
-Q "*dele pyret-docs/$BRANCH/docs.tgz"\
23+
-Q "*dele pyret-docs/$BRANCH/docs-copy.tgz"\
24+
-Q "-rnfr docs-copy.tgz"\
25+
-Q "-rnto docs.tgz"\
1926
--ftp-create-dirs \
20-
-T build/docs.tgz ftp://ftp.cs.brown.edu/pyret-docs/$BRANCH/docs.tgz
27+
-T build/docs.tgz ftp://ftp.cs.brown.edu/pyret-docs/$BRANCH/docs-copy.tgz
2128

0 commit comments

Comments
 (0)