DEV Community

Cover image for Easily deploy your Python Flask web apps online with Gitlab and Heroku
Hugo Sandoval
Hugo Sandoval

Posted on

Easily deploy your Python Flask web apps online with Gitlab and Heroku

About the tools

We will start with a summary of the tools that we will use:

  • VS Code: Popular code editor.
  • Flask: Small web server that we can set up with little code.
  • Gunicorn: A simple WSGI HTTP Server in which we can mount Flask.
  • Postman: An easy platform to test our Rest APIs.
  • Gitlab: Version control service in the cloud and DevOps integration.
  • Heroku: Platform that allows us to upload projects and deploy them online.

What do we need?

  • Create your web app with Flask.
  • Prepare your project repository with Gitlab.
  • Create an account in Heroku.

Configuring our project: Flask and Gunicorn

In this section we gonna prepare our Flask app, the Heroku deploy file and the Gitlab CI configuration.

Now I have a developer blog, continue reading this post here: https://hhsm95.dev/blog/easily-deploy-python-flask-app-with-gitlab-heroku/

Thank you!

Top comments (1)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link.

Sharing your full posts helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section on DEV.

To be clear, the DEV Terms state:

Posts must contain substantial content β€” they may not merely reference an external link that contains the full post.

Also, if you share your full post, you have the option to add a canonical URL directly to your post. This helps with SEO if you are reposting articles!