Skip to content

Commit

Permalink
added depolyRSync
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 27, 2022
1 parent d8b637e commit dcb7ef1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.gradle
Expand Up @@ -197,6 +197,12 @@ task xar(type: Zip) {
}
}

task deployRSync(type: Exec) {
dependsOn 'build'
workingDir buildDir
commandLine 'rsync', '-a', '-u', '--chmod=ug+rwX,o+rX,Dg+s', '--omit-dir-times', '--info=del,stats2,copy,flist2', "${buildDir}/www", uploadUrl
}

task deployToExist {
dependsOn xar
inputs.file("$buildDir/${existAppName}.xar")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true

upload.url=beta.faustedition.net:/var/www/dev
uploadUrl=beta.faustedition.net:/var/www/dev
faust.diplo.allowedFailures=10
faust.diplo.port=0
faust.diplo.debug=0
Expand Down

0 comments on commit dcb7ef1

Please sign in to comment.