Use lzma for deployment (a bit faster to upload)

This commit is contained in:
Chris Done 2014-05-28 23:08:48 +02:00
parent 5bb881cbf0
commit dbfe5482e7

View file

@ -1,6 +1,6 @@
#!/bin/bash -ex #!/bin/bash -ex
cabal build cabal build
strip dist/build/hl/hl strip dist/build/hl/hl
tar czf hl.tar.gz dist/build/hl/hl scripts/restart static/ tar cvf hl.tar.gz dist/build/hl/hl scripts/restart static/ --lzma
scp hl.tar.gz herz: scp hl.tar.gz herz:
ssh herz 'mkdir -p hl && cd hl && tar xf ../hl.tar.gz && killall hl -w && rm ../hl.tar.gz' ssh herz 'mkdir -p hl && cd hl && tar xvf ../hl.tar.gz --lzma && killall hl -w && rm ../hl.tar.gz'