mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Prepare to publish
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/python
|
||||
"""Publish this game here to server"""
|
||||
|
||||
import subprocess
|
||||
|
||||
manifest = "*.html *.js *.gif back.jpg dicebar.jpg close*.png *.css".split()
|
||||
includes = sum(map(list, zip(["--include"] * len(manifest), manifest)), [])
|
||||
server = "play.progressquest.com"
|
||||
destination = "grumdrig.com:www/" + server + "/"
|
||||
|
||||
print manifest
|
||||
output = subprocess.call(
|
||||
["rsync",
|
||||
#"--dry-run",
|
||||
"--verbose",
|
||||
"--compress",
|
||||
"--recursive",
|
||||
"--partial",
|
||||
"--progress",
|
||||
#"--itemize-changes",
|
||||
"--delete",
|
||||
"--delete-excluded",
|
||||
"--times",
|
||||
] + includes + [
|
||||
"--exclude", "*",
|
||||
"./",
|
||||
destination])
|
||||
Reference in New Issue
Block a user