From the course: Flask Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Project step 10: Prepare for deployment
From the course: Flask Essential Training
Project step 10: Prepare for deployment
- [Instructor] We have a few steps to prepare our app for deployment. Let's get to it. First, let's copy the requirements.txt into the directory, 8-3 starter. Copy this requirements file into directory 8-3 starter. And place it in the root of that directory. This lists everything that we need for the deployment with an exception of a Postgres database adopter. Let's add the adapter. Let's give it a save. So, this is an adapter for Python programming language. It allows Python code to interact with Postgres database, meaning to run SQL queries and perform database operations directly from your Python scripts. Next we are going to create versal.json file in the root of the project directory. Okay, so the versal.json file is a configuration file used by Versal to manage the deployment of your project. Specifies how Versal should build and route the application. And this files allow you to define the version of the platform you're using, specify build configurations, set up custom routing…