AWS Elastic Beanstalk Console makes deployment simple.
1) Create an AWS account.
2) Create a requirements.txt file in the project directory.
pip freeze > requirements.txt
3) Create a .ebextensions folder in the project directory.
mkdir .ebextensions
4) Create a django.config file in the .ebextensions folder.
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: mysite.wsgi:application
5) Zip all the files in your Django project directory.
6) Upload the zipped folder to AWS EB console.
7) Wait for AWS EB to launch your project.
8) Click the custom EB URL to see your deployed project!
Top comments (0)