Upload file to multiple hosts

Setup

  • Create a hosts folder
  • In root create a hosts folders inside the hosts
  • Create files for each enviroment and populate with hosts or hosts aliases - integration, staging, production
  • chmod u+x ./upload.sh

RUN

./upload.sh