Reputation: 89
I would like to deploy my django project to AWS Elastic Beanstalk. My project was not create through eb-virt. Do I need to redo the project again in eb-virt? I have no idea of how to deploy my project directly.
Upvotes: 1
Views: 404
Reputation: 8583
It is always recommended to work on a virtual environment. it is important because you can have your very own python environment with all the modules you need for the app installed. The good news is that it's not yet late to create the virtual environment.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
virtualenv ~/eb-virt
source ~/eb-virt/bin/activate
pip install django==2.1.1
pip freeze > requirements.txt
. because elasticbeanstalk can install the dependecies mentioned in this file.follow the deploy section, basically
eb init -p python-3.6 django-tutorial
eb create django-env
, we used to have Dev, staging and production environmentsUpvotes: 0