Scripts for Deployment Process
@stefanw @fin me & @robinharms have been e-mailing about issues on how to get FROIDE up and running.
Could you please make config, Ansible Script accessible or share with us?
@robinharms please add any extra script requirements that would help you make it work.
Just a list of dependencies (like libmagic) and needed services. Example configs would be really useful.
Currently FragDenStaat.de deployment is still a fab script, but it only takes care of deployment (= updating code, dependencies, running migrations etc. and restarting services), not of provisioning (which is the hard part.
I just updated froide-theme and pushed my current (not yet fully working) version of a dockerisation of froide and fragdenstaat. This should contain some hints on how to set it up.
I'd be happy to continue to develop this with you guys, if it makes sense to you. Ansible may be another good way to get things started.
Aloha! :D We're thinking about deploying Froide in Hawaii. Awesome work, btw. I have a set of (fairly opinionated) Ansible scripts that currently let us deploy this - http://beta.uipa.org using Terraform + Ansible to Digital Ocean. They may have to be tweaked a little, but let me know the best way to share them. We're also working on a Vagrantfile w/ Ansible provisioner if that will help get this installed any quicker.
@ryankanno do you think you could share it as a gist? i'm in the process of looking over my scripts to make them publish-able, but i need to be sure there are no keyfiles in there, etc.
@fin Absolutely. I'm in the process of cleaning them up right now. It'll be a Vagrantfile with a bunch of Ansible tasks. I'll link the gist here once I get everything cleaned up. I also have a topic branch that I'll link to see the commits, etc. What's the best strategy to update the Froide settings? Update settings.py with a new class re: class Vagrant(Base):
@ryankanno re froide settings: i'd suggest creating a repo based on froide-theme and adding custom config there, as i did here: https://github.com/fin/fragdenstaat.at/blob/master/froide_theme/settings.py (and as stefan does with fragdenstaat.de as well)
@fin Thanks for that tip. Definitely going down that route. There were 22 files changed so I wasn't sure how that would look as a gist. I did check all my changes into a branch. I tried to document what I did in a Vagrantfile readme. It's still a bit of a work in progress, but we'll be cleaning it up a bit as we get closer to releasing it.
@fin As I was going through setting up the application and what not, I also realized that we didn't set up elasticsearch. Will be updating the branch to take care of that.
@robinharms @mattiasaxell i'll be (and have been) hard to reach for a week or so due to the death of a dear friend. sorry for the delay. i was 95% done with the deploy script, but it seems like @ryankanno has you mostly covered. (my deployment even runs with whoosh instead of elasticsearch - which should currently be the default - without performance issues for now)
I'm sorry for your loss @fin, sad to hear that! Thanks a lot for taking time to answer. @ryankanno is your custom config working properly in production stage? Is it a little cleaned up now and ready for release? In that case @robinharms could maybe look at it soon for our deployment.
@fin My condolences to you and yours.
@mattiasaxell @robinharms I haven't had time to configure the search index yet in this branch. I'll be getting to it shortly. With that said, I've set it up with Vagrant in that branch, so you should be able to play around / customize it in isolation fairly easily. Let me know if you need anything else from me.
@fin beautiful gift at the online memorial website!
@ryankanno alright, so it would be soon ready to be up and running in production mode? We would love to have your list of dependencies, is that already set up in the branch? To me it looks like it, but I'm new to this area. Also, would it be much work to change it to Debian? Would be great if we could go into production in October. :)
@mattiasaxell If you want to ping me off this github issue, I can try to help you get it setup. I'm in the process myself of trying to get it productionized. As a note, that Vagrantfile doesn't deal with securing the machine since that's a bit out of scope (and a lot of personal idealogy). :)
@ryankanno how can I ping you outside the issue? It seems @robinharms won't be running Vagrant-script but using it for inspiration on what the system requires.
However I looked through the issues more thoroughly and found that this issue has been around for a while: Production setup instructions are incomplete. Maybe your script productionized script could be added to setup documentation?