Skip to content

santhoshbandaru/houseprice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment Of Flask App on Heroku

Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud. It is generally considered to be easy-to-use. But it’s most beneficial to businesses in specific situations. Heroku has a free service model for small projects, but tiered service packages exist for cases where more complex business needs must be addressed.

In this Repo I implemented Prediction of House price using Linear Regression and deployed to Heroku.

To Review the Implemented Deployment Please visit https://santhosh12.herokuapp.com

STEPS TO FOLLOW

1. Create a Directory Containing FlaskApp, Index.html and requirements.txt

NOTE   :   To generate requirements .txt , go to path in command prompt or Terminal and type pipreqs

Add These in your   requirements.txt   as these ensure proper deployment in Heroku cloud.

gunicorn==19.9.0
itsdangerous==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
Werkzeug==0.15.5

2. Create a Procfile

A Procfile is a list of process types in an app.

web: gunicorn server:app

The first app represents the name of the python file that runs your application or the name of the module it is in. The second app represents your app name.

In My repo My python name is app.py and application name is app.

Upload These Files in Git Repo

model.pkl
server.py 
requirements.txt 
Procfile 
templates 

3. Open Heroku clock create new and select app

Give a name to your app and create

4. Connect to github and select Your Repo.

Please Refer the Following Structure

4 . Click Deploy Branch

A Link Will be Generated after sucessful Deployment like this https://santhosh12.herokuapp.com


References

Thank You

Hope you found it insightful. If you have any queries you can mail me at : [email protected] .I would love to hear feedback from you to improvise it and make it better!