Skip to content

Instantly share code, notes, and snippets.

View vinodMS's full-sized avatar
🎯
Focusing

Vinod Sudharshan vinodMS

🎯
Focusing
  • Amsterdam, Netharlands
View GitHub Profile
@vinodMS
vinodMS / deploy-django.md
Last active April 6, 2022 18:44 — forked from rmiyazaki6499/deploy-django.md
Deploying a Production ready Django app on AWS

Deploying a Production ready Django app on AWS

In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
  • Continuous deployment with Github Actions/SSM Agent
Follow these steps prior to developing a new feature.
1. git pull (on develop)
2. git checkout -b feature/<name-of-feature> (create a new branch from develop. Replace name-of-feature with the feature you're working on, example feature/hello-world)
3. python manage.py migrate && python manage.py collectstatic (run this inside the container)
4. Access the website on the browser and make sure it's working.
### Keybase proof
I hereby claim:
* I am vinodms on github.
* I am avizzzy (https://keybase.io/avizzzy) on keybase.
* I have a public key ASBmGakrHG2fb5F0Why1FkvPFief0J2BVEddnDDl7GbiHQo
To claim this, I am signing this object: