This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] Notes from running OpenHatch on Heroku (patch attached)

Parker Phinney parker.phinney at gmail.com
Tue Feb 14 22:03:55 UTC 2012


I wonder: is it possible to have manage.py in both places through
clever use of symlinks or python import
statements/__init__.py/something else?

On Mon, Feb 13, 2012 at 3:02 PM, Asheesh Laroia <asheesh at asheesh.org> wrote:
> (Skip this message if sysadminy/deployment-related thoughts aren't
> interesting to you.)
>
> I figured that the easiest way to put the OpenHatch redesign on the web was
> to use Heroku.
>
> (It's a (proprietary, hosted) web service that makes it easy to deploy web
> apps, and has a free-of-cost entry-level account.
> http://devcenter.heroku.com/articles/django explains their Django support.)
>
> Heroku lets one deploy Python apps, and ours is nearly ready to run there
> as-is. It needed the following changes, which I have *not* pushed to the
> main repo:
>
> * manage.py moves to mysite/manage.py
>
> * Create a 'requirements.txt' that adds a Postgres connector to our
> dependencies
>
> * Migrations need to get fixed to run on Postgres
>
> I'm attaching a patch series that implements (in a rushed hackish way) these
> changes. I think it'd be really swell to 1) fix OpenHatch so it can run on
> Heroku easily, and 2) write documentation suggesting that. It's an easy way
> to let any contributor put their OpenHatch instance up on the web so others
> can see their changes.
>
> (Since our migrations don't work right now, the patch series simply disables
> South.)
>
> If someone wants to look into this (I think armooo might be interested,
> actually!), that would be swell. I'm not going to look into this any more
> during February, I expect, but I would totally merge patches and give
> feedback to anyone who wants to look into this.
>
> I'm not thrilled that we have to move manage.py away from its current
> location, which would break people's scripts. I guess we have to do it,
> though, if we want to be Heroku-compatible.
>
> -- Asheesh.
> _______________________________________________
> Devel mailing list
> Devel at lists.openhatch.org
> http://lists.openhatch.org/mailman/listinfo/devel
>



-- 
http://www.madebyparker.com


More information about the Devel mailing list