Deploying the order service

Deploying the order service is pretty much the same as the gamestore project, the only difference is that we are going to install different Python dependencies and deploy the application in a different directory. So, let's get started.

You can pretty much repeat all the steps up until installing the nginx step. Also, make sure that you are using the elastic IP address of the other EC2 instance from now on.

After you install nginx, we can install the order service dependencies:

sudo pip-3.6 install django djangorestframework requests

We can now copy the project file. Go to the directory where you have the service's directory, and run this command:

scp -R -i order-service-keys.pem ./order ec2-user@35.176.194.15:~/gamestore ...

Get Python Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.