Posts

Django deployment with nginx and gunicorn using jenkins

Image
In this tutorial, I will  demonstrate  how to deploy a Django project with Gunicorn and Nginx using Jenkins to achieve continuous integration . Prerequisites : - Basic idea on Django application deployment . - Your virtual environment ready for the application . - A Ubuntu based server(or you can try on your local Ubuntu machine) - Your application in Gitlab/Github Installing Apache-tomcat and Jenkins - We will be using apache-tomcat to deploy/host our Jenkins ,as its is preferable for managing traffic      in server . - As the default Jenkins is a light weight server so it's not suggestible for server .   Install Apache-tomcat: - You can download apache-tomcat  .tar file from the following link :     https://tomcat.apache.org/download-80.cgi - Extract the apache-tomcat.tar.gz file Install Jenkins: - Download jenkins.war file from the following url :    https://updates.jenkins-ci.org/download/war/ - Extract the jenkins.war file