Last active
July 27, 2020 10:24
-
-
Save arthurattwell/246737a15d4747c4f00f99ee4d72eda5 to your computer and use it in GitHub Desktop.
FTP deploy from Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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