Giter Club home page Giter Club logo

mezzanine-paas's Introduction

Mezzanine on Heroku

A quick way to deploy a Mezzanine site to Heroku. Inspired by blog posts by Ben Havilland and Josh Finnie

This is just for testing. In particular, uploaded media files may vanish because of how static files are served (see below).

Deploy to Heroku

git clone https://github.com/lorin/mezzanine-heroku
cd mezzanine-heroku
heroku login
heroku create
git push heroku master
heroku run python mezzanine_heroku/manage.py createdb

You will be prompted to specify admin credentials as well as asked about generating some default content (I answer "y" to all of these).

You will also be prompted to input a site record. Specify the hostname that Heroku assigned your app (e.g. secret-peak-9874.herokuapp.com).

Run locally

The default database is Postgres. On Mac OS X, simplest thing to do is install Postgres.app

mkvirtualenv mezzanine_heroku
pip install -r requirements.txt
createdb mezzanine
python mezzanine_heroku/manage.py createdb
python mezzanine_heroku/manage.py collectstatic
gunicorn mezzanine_heroku.wsgi

Serves at http://localhost:800

On subsequent runs, you can just do gunicorn mezzanine_heroku.wsgi.

Issues

Thumbnails

It's not currently generating thumbnails of images properly.

Email

Not currently configured for email

Static files can vanish

This serves static files from the local filesystem. This simplifies the configuration, but it means we need to check some additional static files into the repo (the static directory), and it also means that uploaded media files can vanish.

For a production deployment, use django storages and store static and media assets on a backend like S3.

mezzanine-paas's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.