-
Notifications
You must be signed in to change notification settings - Fork 1
1. Push the API to Github
Ovo Okpubuluku edited this page Jun 11, 2022
·
1 revision
We are doing this because we will be connecting this repository to Azure App Services for CI/CD.
Before doing that, we need to take one important step. We need to create a requirements.txt file that will contain the dependencies required to run our API. Follow the steps below to create the file:
-Activate your virtual environment.
-Go to your project folder.
-Run the command shown below:
pip freeze > requirements.txt-It will create a requirements.txt file in your current directory. Your directory structure should look something like this:
./text-analytics-api
|- main.py
|- utils.py
|- requirements.txt
Later on we are going to deploy the API on Azure using the same repository, and hence, we need to manually add some packages in the requirements.txt file. You need to add the following text at the end of your requirements.txt file:
uvloop
httptools
gunicorn==20.0.4
- Lastly, create a github repo and push