Flask App
Deploying a Flask application on Replit is quick and easy. Replit offers a user-friendly platform for hosting Flask apps.
Follow the steps below to deploy your Flask app on Replit:
Step 1: Fork the template
Login to Replit and fork the Flask template by selecting the + Use Template button located at the top right of the page. Follow the onscreen instructions to complete the fork and create a Repl.
Step 2: Deploy the flask app
In the Workspace header, select the Deploy button and choose Autoscale from the types of Deployments. Then, select the Set up your deployment button and use the following configuration:
- Machine configuration: Keep the default values, which are 1vCPU and 2 GiB RAM.
- Max number of machines: Keep the default value of 3.
- Primary domains: Choose a domain name for your app.
- Build command: This is optional; you can leave it blank.
- Run command: Enter
python3 main.py
into the Run command field.
Select the Deploy button to deploy your application.
After a few minutes, your app will be live!
In the future, if you want to update your Deployment, open the Deployments pane and either redeploy or update the config in the settings.