okfde / froide

Freedom Of Information Portal
MIT License
366 stars 86 forks source link

Support / Instructions for deplolying on Heroku (or other easy to use PaaS) #81

Closed rufuspollock closed 10 years ago

rufuspollock commented 11 years ago

cf https://github.com/okfn/ideas/issues/41

Froide on Heroku needs the following:

rufuspollock commented 11 years ago

From @stefanw

Please be also aware that there is a Django 1.6/Python 3/Bootstrap 3 branch that has not been merged to master yet. Feel free to pullrequest either.

rufuspollock commented 11 years ago

Environment variable stuff seems a bit of a pain - django-configurations option does not seem that great e.g. http://django-configurations.readthedocs.org/en/latest/values/#environment-variables

Guess we could do ourselves or there may be a way to upload your own settings.py and have django pick it up (may be nicer ...)

rufuspollock commented 11 years ago

Sending email will be pretty simple but not sure about receiving it - how do you manage this normally (gmail account?)

rufuspollock commented 10 years ago

@stefanw how are we doing here? Are we now doing a different branch?

stefanw commented 10 years ago

I have merge the heroku branch into master together with the other recent changes (Django 1.6, Bootstrap 3). I spent the evening fixing multi-language support and trying out Postmark (see the settings class, but got stuck at their sending signatures verification). Still needs some testing and then I will write down instructions. There are many steps but it's pretty straight forward.

stefanw commented 10 years ago

Alright @rgrp, I just made a first example request on Heroku. I updated this issue description with the further ToDos for full Heroku support.

Heroku runs as English with switchable UI language support, but there are still some problems (see #99).

rufuspollock commented 10 years ago

@stefanw awesome - where are the instructions for a heroku deployment? I'd added some docs to the readme originally but imagine somewhere else is better? I'd really like to dig into https://github.com/okfn/ideas/issues/41 again :-)

stefanw commented 10 years ago

@rgrp I just finished S3 integration. Postal attachments and mail attachments are now uploaded to S3. Static file serving is also now at S3.

Likely you wouldn't even deploy Froide as such, but get a template theme app, optionally adapt it and then push it to Heroku. Will tackle this likely this weekend

rufuspollock commented 10 years ago

@stefanw not sure i understand but eager to use this for is it open data reboot ;-) (or rather replace the currently temporary deployed froide version we have running)

stefanw commented 10 years ago

Heroku setup instructions are now here: http://froide.readthedocs.org/en/latest/herokudeployment/

Basic version can be up in 5 minutes!