[PYTHON] (Failure) Deploy a web app made with Flask on heroku

Let's deploy the Flask app using heroku and github. Write for notes. I was thinking, but when I try to view the deployed page, I get an error. I was able to do it before, but ...

First, create a file to put the program in.

(base) PS C:\working\web_app> python -m venv New file name(This time message_app)

Set up a virtual environment. Type the command below to run the virtual environment.

(base) PS C:\working\web_app\message_app>Scripts\activate

Then install the library in the virtual environment.

(message_app) PS C:\working\web_app\message_app>pip install Library name to use (this time flask, request and gunicorn)

pip install -r requirements.txt(requirements.You can also install using txt)

Create a file named Procfile and write the following statement in the file with an editor

web: gunicorn app:app --log-file=-

Create requirements.txt and copy and paste the information of the installed library that came out with the command inside

pip freeze

Execute the following command

git init
git add .

Note that there is a half-width space between add and.

git commit -m “Comment”
heroku login
heroku create
git push heroku master

I tried it, but I couldn't do it > <

Recommended Posts

(Failure) Deploy a web app made with Flask on heroku
How to deploy a web app made with Flask to Heroku
Until you publish (deploy) a web application made with bottle on Heroku
Deploy a Django app made with PTVS on Azure
Deploy a web app created with Streamlit to Heroku
Deploy Flask app on heroku (bitterly)
Deploy the Flask app on Heroku
Deploy the Flask app on heroku
Create a simple web app with flask
Easy web app with Python + Flask + Heroku
Vienna with Python + Flask web app on Jenkins
Deploy masonite app on Heroku 2020
Deploy a Python 3.6 / Django / Postgres web app on Azure
Deploy a real-time web app with swampdragon x apache
Build a flask app made with tensorflow and dlib to work on centos7
I made a twitter app that decodes the characters of Pricone with heroku (failure)
Run the app with Flask + Heroku
Creating a simple app with flask
Build a Flask / Bottle-like web application on AWS Lambda with Chalice
I made a Nyanko tweet form with Python, Flask and Heroku
How to deploy a Django app on heroku in just 5 minutes
Deploy flask app with mod_wsgi (using pipenv)
Play like a web app with ipywidgets
Deploy the Django app on Heroku [Part 2]
Deploy the Django app on Heroku [Part 1]
Daemonize a Python web app with Supervisor
Create a web service with Docker + Flask
Getting Started with Heroku, Deploying Flask App
Launch Flask application with Docker on Heroku
I made a WEB application with Django
Deploy a Python app on Google App Engine and integrate it with GitHub
A story about deploying a Twitter-linked app created using Flask + gunicorn on Heroku
Publish a web application for viewing data created with Streamlit on heroku
Create a bulletin board with Heroku, Flask, SQLAlchemy
Launch a web server with Python and Flask
A memorandum for touching python Flask on heroku
I made a Mattermost bot with Python (+ Flask)
Looking back on creating a web service with Django 1
Easy machine learning with scikit-learn and flask ✕ Web app
I made a net news notification app with Python
Deploy a Django application on Google App Engine (Python3)
Looking back on creating a web service with Django 2
I made a LINE BOT with Python and Heroku
Web App Development Practice: Create a Shift Creation Page with Django! (Experiment on admin page)
I made a web application that maps IT event information with Vue and Flask
Deploy Flask with ZEIT Now
A memorandum of stumbling on my personal HEROKU & Python (Flask)
Touch Flask + run with Heroku
Sample to put Python Flask web app on Azure App Service (Web App)
SNS Flask (Ajax) made with Flask
Web application development with Flask
I made a simple book application with python + Flask ~ Introduction ~
Deploy your Go app on Google App Engine with GitHub Actions
Web application with Python + Flask ② ③
Deploy a Django application on EC2 with Nginx + Gunicorn + Supervisor
Web application with Python + Flask ④
Easy deep learning web app with NNC and Python + Flask
Create a Python3.4 + Nginx + uWSGI + Flask Web application execution environment with haste using pyenv on Ubuntu 12.04
Let's make a WEB application for phone book with flask Part 1
I made a web server with Raspberry Pi to watch anime
Web App Development Practice: Create a Shift Creation Page with Django! (Shift creation page)