Skip to content

mispy-archive/cherrypy-heroku-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cherrypy-heroku-example

A very minimal example that can be used for doing quick web prototyping in Python.

About

This is especially designed for people who have an understanding of Python but are new to web development in particular. It can be difficult to decide on components and frameworks so that you can get down to coding. This example uses cherrypy for the webserver, jinja2 for html rendering, and provides a Procfile so that it can be immediately deployed on Heroku.

Setting up locally

Make sure you have Python and pip installed.

git clone https://github.com/mispy/cherrypy-heroku-example.git
cd cherrypy-heroku-example
pip install -r requirements.txt
python app.py

The webserver should now be running on http://localhost:5000. Editing app.py will cause cherrypy to reload itself.

Deploying to Heroku

Install the Heroku toolbelt, and make sure you commit your changes to git. Now you can deploy:

heroku create
git push heroku master

If all goes well, you can open your app in the browser:

heroku open

About

A minimal example for Python web prototyping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published