Deploy a Flask App with a sqlite database on Heroku
Published in
4 min readAug 24, 2019
Built a App using the Flask framework? Great! Now show it to the world 🌎
If you want to use Amazon Web Service’s Lightsail, check out my previous post.
Following this tutorial you can only upload a flask app with a sqlite database. If you want to upload a database with a postgresql database, check out this tutorial by Pretty Printed on Youtube.
What you’ll need
- A Github account
- Knowledge of basic git commands
- Knowledge of basic linux commands
- Git bash
- A flask App ready to be deployed.
Setup Heroku
- Go to Heroku and create a free account. Leave the Company name field blank.
2. Log in to your account.
Prepare your flask app to be deployed
- In git bash type the following. This creates a file called requirements.txt which contains all the dependencies for your project. It also acts as a buildpack for…