New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development environment #797
Comments
A big thing for me is some way to more easily flip env variables with re-provisioning the box. |
@paperscissors could you give an example? |
@jeffsheltren two things i ran into while trying to setup a self-signed cert--- on vagrant we need to set the API URI via env variables in vagrant settings, or else all of the CSS and JS are broken on HTTPS on the machine. @jessevondoom also just introduced a quick and dirty debug mode that requires a debug flag in those vagrant env variables. To the best of my knowledge vagrant up nor reload will reload these variables, only provision. It's not the end of the world, but every time i run provision I'd have to setup SSL all over again. On the subject of SSL--- now that we're dealing with Stripe and SSL is required to run the seed, should we just bake a self-signed cert into the box provisioning? |
Yeah I think we definitely want to add a self-signed cert or install letsencrypt or something. A few other seeds require SSL, and more will follow. Re: dubug and envvars: the current vagrant is set up to add Apache environment variables that trump whatever's in the ini. Was a feature, kind of now a bug. Think we ditch that and let this box read off the local cashmusic.ini.php file and be done with it. |
That sounds like a better approach! |
Ideally we would use the puppet tree that's already used for the test/stage/production server environments since that will be as close as we can get to matching those servers in a local developer environment. We already have Vagrant configuration and instructions there which make it possible to bring a VM online locally using Vagrant + Virtualbox. So instead of trying to reproduce the Puppet configuration somewhere else, I'd like to focus on using that existing tree and working to make the Vagrant setup (for Virtualbox) there as easy and automated as possible. Once that's working, we can start looking at leveraging that to let people deploy Rackspace or other VMs using the same Vagrant / Puppet tree. The Vagrant image there is already configured to mount your local We'll definitely need to think a bit about SSL since we'll need that enabled on the VM and it isn't currently. Let's Encrypt is interesting, although I'm not sure it'd work for our use case; I'll review it though. We may need to stick with a self-signed cert using a pre-set hostname (we're already assuming Anyway, long story short, I'd like to focus on the existing Puppet tree and make improvements there to make the development setup easier. Could we start opening up specific issues in that issue queue for bug fixes/improvements? First off, I'll suggest we need to rename the repo, though I'll have to make some changes server-side to account for that change... @paperscissors @jessevondoom If I understand correctly about the vagrant env variables for the old Vagrant -- are those just changing things within cashmusic.ini.php? If so, that's something that the developer could do directly in the file under the other/new Vagrant setup. If there's other specific functionality needed, let's discuss. |
@jeffsheltren: Yeah, Let's Encrypt is a great service, but the certs are short-lived - I could see that being an unnecessary nightmare 😁 Self-signed makes sense. |
@waferbaby @jeffsheltren can't you set them to auto-renew though? |
Two points to @jeffsheltren's comment:
|
Our current vagrant setup is out of date and pretty far off what we're actually deploying for our hosted stuff. I think it's time we look at building up a new development environment — ideally one that can also be the kernel of a better distribution method for people looking to run their own instances.
So this is really multiple things. We want to:
Vagrant is nice for the ability to store a vagrantfile in our repo and let folks just vagrant up. Would be nice to keep that. How much of out puppet scripts remain viable in that environment? How hard is maintenance?
Opening this issue to serve as a thread for development.
The text was updated successfully, but these errors were encountered: