Hosting Service Initial Settings (3) – Clone Project Directory with GitHub
Summary of the initial settings
We split this step into three sections. This lesson covers the last section.
- AWS Lightsail setup
- Prepare AWS Lightsail and create an Ubuntu (20.04 LTS) instance
- Obtain a static IP address and attach it to the instance
- SSH remote connection between the local computer and the Ubuntu instance
- Establish an SSH connection between the local computer and the instance
- Enable the remote access using VS Code
- Clone the project directory to the instance using GitHub (this section)
- Push the project directory from the local computer to the GitHub repository
- Establish a remote connection between GitHub repository and the Ubuntu instance (register a developer key)
- Clone the project directory to the Ubuntu instance
Push the project directory from the local computer to the GitHub repository
To transfer your code from the local computer to the server, GitHub (a git repository platform) is often used. If you are not familiar with Git and GitHub, we recommend that you check our 'Git and GitHub Introduction' course.
As the process of establishing Git and GitHub requires a lot of explanations. Here, we will mainly cover key points for the Django project code transfer process.
.gitignore
Before you push (send) your project documents to the GitHub repository, you need to create the .gitignore file. There are files or directories you don't want to push to the repository.
Subscribe now for
uninterrupted access.