Deployment-script added.
This commit is contained in:
parent
3e086565a4
commit
271abf6b33
2 changed files with 24 additions and 1 deletions
21
bin/deploy.sh
Executable file
21
bin/deploy.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
if ! test -d website/output
|
||||
then
|
||||
echo "Website-Build not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "SSH_USER=${SSH_USER}"
|
||||
echo "SSH_HOST=${SSH_HOST}"
|
||||
if [ -n "$LFTP_PASSWORD" ]
|
||||
then
|
||||
echo "Password for Deployment found"
|
||||
fi
|
||||
|
||||
|
||||
lftp -e 'set sftp:auto-confirm yes; mirror -R ./website/output/ ./web/; bye' --env-password -u ${SSH_USER} sftp://${SSH_HOST}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue