How to setup VS Code to upload website to Bluehost.com.
- If you don't already have this VS Code extension installed, then install it: SFTP - SFTP/FTP sync by Natizyskunk
-
In VS Code press Ctrl-Shift-P then choose SFTP: Config.
This brings up the sftp.json file.
- Configure as follows
- name: This name can be anything.
- host: This is the ftp host, for example, "ftp.cagsites.com"
- protocol: I have been using ftp
- port: 21 for bluehost
- username: This can be the name of the domain. In my case, "cagsites"
- password: I have been using the same password that I used to initially log into bluehost.com
- remotePath: For the main domain, this is public_html. If it is for a subdomain, then use public_html/<subdomain>
- uploadOnSave: Set to yes if you want to upload to bluehost automatically everytime you save, otherwise, set to no.
- useTempfile: I have been using false here.
- openSsh: I have been using false here.