mirror of
https://github.com/kiteco/kiteco-public.git
synced 2024-09-11 13:38:04 +03:00
24 lines
524 B
Bash
24 lines
524 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
KITECO="${KITECO:-$GOPATH/src/github.com/kiteco/kiteco}"
|
||
|
|
||
|
cd $KITECO/web/sandbox
|
||
|
# remove previous assets
|
||
|
rm -rf ./dist
|
||
|
|
||
|
# build assets
|
||
|
npm run make-production-all
|
||
|
|
||
|
cd dist
|
||
|
|
||
|
# reset known_hosts entry
|
||
|
ssh-keygen -R [XXXXXXX]:2222
|
||
|
|
||
|
# sync remote directory with current
|
||
|
# requires a LFTP_PASSWORD environment variable
|
||
|
lftp --env-password \
|
||
|
-p 2222 \
|
||
|
sftp://XXXXXXX@XXXXXXX.XXXXXXX.XXXXXXX.com \
|
||
|
-e "set sftp:auto-confirm yes; cd wp-content/kite-sandbox; mirror -R --delete-first; ls; bye"
|