created script to deploy site to production server
This commit is contained in:
parent
68bebccff8
commit
9fec0e807f
17
deploy-via-ftp.sh
Normal file
17
deploy-via-ftp.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# see here: https://stackoverflow.com/a/32235669
|
||||
|
||||
#get username and password
|
||||
USER=username #Your username
|
||||
PASS=password #Your password
|
||||
HOST="myftpserver.com" #Keep just the address
|
||||
LCD="~/Desktop/localfolder" #Your local directory
|
||||
RCD="/users/user" #FTP server directory
|
||||
|
||||
lftp -f "
|
||||
open $HOST
|
||||
user $USER $PASS
|
||||
lcd $LCD
|
||||
mirror --continue --reverse --delete --verbose $LCD $RCD
|
||||
bye
|
||||
"
|
||||
Loading…
Reference in New Issue
Block a user