Deploy a Flask App with a sqlite database on Heroku

Rahul Banerjee
Programming Tips
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

  1. A Github account
  2. Knowledge of basic git commands
  3. Knowledge of basic linux commands
  4. Git bash
  5. A flask App ready to be deployed.

Setup Heroku

  1. 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

  1. 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…

--

--