Use lzma for deployment (a bit faster to upload)
This commit is contained in:
parent
5bb881cbf0
commit
dbfe5482e7
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue