Transferring your files to the server
Armed now with the domain pointing to our server and the configurations in place, it is time to upload our distribution files. Depending on your choice of hosting, this could be done through a web interface, a File Transfer Protocol (FTP) application, or secure transfer over the Secure Shell Protocol (SSH). For the last two options, it is recommended to use an application that takes care of the heavy lifting. An excellent option is to use FileZilla (https://filezilla-project.org/), which handles the aforementioned protocols. It is available for Linux, Windows, and macOS.
As we mentioned in Chapter 9, Testing and Source Control, you can also configure your VPS/server to pull the source code from a remote repository using Git. In this case, the application folder will be configured to point to the /dist
folder in the local repository. We could, for example, open a remote terminal to the server, trigger a synchronization (pull), and then bundle...