SSH Into the Server + Run sudo apt update & upgrade
4
Install the Dependencies
5
Initialize the Firewall
6
Overview of Automatic Deployment
7
Continue Initializing the Firewall
8
Get the Code from GitLab Server + Install Gunicorn
9
Remove Default Configuration from nginx + Create a New Configuration
10
Link the sites
11
Test the Application
12
Generate a Private-Public Key Pair
13
Add the Public Key to the Server
14
Add the Private Key to GitLab
15
Write the Deployment Script gitlab-ci.yml
16
Set Up the GitLab Runner
17
Make a Push to GitLab
18
Fix Any Issues
19
Configure the Service for Running the Django App
20
Test the Deployment Script
21
Add the IP Address to the Django Database
22
Update the Webhook Address in Stripe
23
Disable Debug Mode
24
Conclusion
Description:
Learn how to deploy a Django-based SaaS application and set up a Continuous Deployment pipeline using GitLab in this comprehensive video tutorial. Follow step-by-step instructions for server setup, dependency installation, firewall configuration, and automatic deployment. Master key concepts such as SSH access, nginx configuration, GitLab runner setup, and deployment script creation. Discover how to generate and manage SSH keys, configure services for running Django apps, and update essential settings like IP addresses and webhook addresses. By the end of this tutorial, gain the skills to successfully deploy and maintain a production-ready SaaS application with a robust CI/CD pipeline.
CI-CD SaaS App Deployment - SaaS App From Scratch Conclusion