This tool uses rsync
to transfer your files to a remote location.
Create local versions of the following files:
deploy.sh
.deployignore
.deployconfig
e.g.
curl https://gist.githubusercontent.com/mattsandersuk/9df2cc87ee47f9600f77b6717b618870/raw/1afa5d8c4abe48b23ad1d2eb1160b1e05ea0e863/.deployconfig > .deployconfig && curl https://gist.githubusercontent.com/mattsandersuk/9df2cc87ee47f9600f77b6717b618870/raw/1afa5d8c4abe48b23ad1d2eb1160b1e05ea0e863/.deployignore > .deployignore && curl https://gist.githubusercontent.com/mattsandersuk/9df2cc87ee47f9600f77b6717b618870/raw/1afa5d8c4abe48b23ad1d2eb1160b1e05ea0e863/deploy.sh > deploy.sh
Update the config variables inside .deployconfig
.
Add any additional files to the .deployignore
list that you don't want to transfer.
Run chmod 755 deploy.sh
to allow the script to be executable.
./deploy.sh
- to perform a dry-run and check what files will be copied./deploy.sh -t
- to transfer the files./deploy.sh -d
- to add the--delete
flag, this will remove any files at the destination that don't exist in the local./deploy.sh -c
- to compile assets based on theCOMPILE_COMMAND
in.deployconfig
./deploy.sh -tdc
- to run all 3