X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.ps1;fp=deploy.ps1;h=5edd2a41bdf6a6a6aebbe38816139c036d67974d;hb=6cc0700aa5b90500b620ca8dd5b2976892aee0a7;hp=0000000000000000000000000000000000000000;hpb=80abdea74b5741e7855756b854966f55b6c864e5;p=rup.git diff --git a/deploy.ps1 b/deploy.ps1 new file mode 100755 index 0000000..5edd2a4 --- /dev/null +++ b/deploy.ps1 @@ -0,0 +1,14 @@ +git pull +cargo build --release + +$destination=$args[0] + +if (!(Test-Path -Path $destination)) { + New-Item -ItemType directory -Path $destination +} + +Copy-Item target/release/rup -Destination $destination +Copy-Item key.secret -Destination $destination +Copy-Item conf.ron -Destination $destination +Copy-Item static -Destination $destination -Recurse -Force +