Skip to content

santhoshbandaru/ilander_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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 salary using Linear Regression and deployed to Heroku.

To Review the Implemented Deployment Please visit ilanderproject

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 app: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
app.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.

  • Make Sure Port is set to 5000 or any valid port value.
  • If you have Images in your html page , they should be in static folder.

Please Refer the Structure

4 . Click Deploy Branch

A Link Will be Generated after sucessful Deployment like this ilanderproject


References

Thank You :D

Hope you found it insightful. I would love to hear feedback from you to improvise it and make it better!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published