![]() ![]() Just like any other AWS offerings, EC2 can be easily integrated with the other Amazon services such as the Simple Queue Service (SQS), or Simple Storage Service (S3), among others. EC2 also offers automatic scaling where resources are allocated based on the amount of traffic received. What is EC2?Īmazon's Elastic Compute Cloud (EC2) is an offering that allows developers to provision and run their applications by creating instances of virtual machines in the cloud. In this post, we will package a Django application using Docker and deploy it to Amazon's EC2. While building an application is important, making it available to the end-users is also a crucial part of the product. Serverless technology is also flourishing in this era of containerization and is proving to be the go-to option for developers when deploying their applications with more and more providers allowing users to deploy containerized software. Containers allow us to package our applications and deploy them anywhere without having to reconfigure or adapt our applications to the deployment platform.Īt the forefront of containerization is Docker, which is a tool that is used to package and run applications in containers that are platform agnostic. ![]() Change the configs of nf: vim /etc/apache2/sites-available/nfįile location: /etc/apache2/sites-available/000-default.In the fast-paced field of web applications, containerization has become not only common but the preferred mode of packaging and delivering web applications. Sudo apt-get update sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-p圓Ģ. Create superuser for the admin dashboard, it will ask for username and password: python manage.py createsuperuser Setup Apache2 If you get an error, try pip install psycopg2-binaryħ. Install psycopg2 to help Django interact with PostgreSQL. In the settings.py file change the following: ALLOWED_HOSTS = Change DATABASES to this: DATABASES = Ħ. Test if the Django server is running, it will be at 127.0.0.01:8000 python manage.py makemigrations
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |