Skip to content

Instantly share code, notes, and snippets.

@arthurattwell
Last active July 27, 2020 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurattwell/246737a15d4747c4f00f99ee4d72eda5 to your computer and use it in GitHub Desktop.
Save arthurattwell/246737a15d4747c4f00f99ee4d72eda5 to your computer and use it in GitHub Desktop.
FTP deploy from Windows
:: 1. Create a file called secrets.ftp beside this one.
:: 2. Do not commit secrets.ftp to version control.
:: 3. Copy these lines (without the ::s) to it,
:: and add your server IP address, FTP username and FTP password:
:: open 54.454.4.47
:: ftpusernamehere
:: ftppasswordhere
:: cd public_html
:: lcd public
:: mput *.*
:: disconnect
:: quit
:: That example assumes you have the files to deploy
:: in a folder called 'public', beside this file;
:: and that once logged into your webserver, you will
:: enter the public_html directory and copy your files there.
:: Further FTP commands reference:
:: https://www.nsftools.com/tips/MSFTP.htm
:: This line then uses the FTP commands in secrets.ftp
:: to deploy the site
ftp -i -s:secrets.ftp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment