One of the biggest requests for DevShop has been site-folder-repos and drush make driven development and deployment.

I'm sold. Let's make this happen.

What if we store a "makefile URL" property on projects. It could be a link to the raw source code on drupalcode.org or github. Then we could build the platforms from that.

We would then have to store a Git URL for each environment.

Hostmaster creates the sites/mysite.com folder automatically, writing over settings.php and creating the files folder.

We could run a post hosting task hook to git init that folder, and then `git remote add` and `git pull`. As long as the .gitignore ignored the settings.php and files folders, I think this would work pretty well.

I also want to make a new task called "Deploy". This would create a New Platform for the chosen tag/branch and then Migrate the site properly using aegir. Do do this I would need another table to keep track of all the platforms for an environment.

This should open things up for people that work this way.

Thoughts?

Comments

Jon Pugh’s picture

Issue summary: View changes
btopro’s picture

sounds awesome!

Are these invoked via drush or bash scripts? Sounds like capability that I'd love to have in drush_recipes (as a recipe that is). Also if there's currently a script that starts providing this capability I'd love to simplify the drush call as much as possible (plus add another recipe to our community).
Once these move ahead:
#2323035: New recipe spec: Tokenized / Madlib style ingredients
#2323051: allow madlib tokens to be passed via options

Jon Pugh’s picture

It's all drush, but sometimes calling exec() for for commands.

Aegir already can deploy a platform from a make file, so it's more about figuring out the orchestration. See the provision project if you are interested in using something that builds make files and installs sites via the command line.

Jon Pugh’s picture

Jon Pugh’s picture

Component: devshop_provision » General
Status: Active » Postponed

I think I'm going to have to postpone this one, at least for 1.0.0

daggerhart’s picture

Status: Postponed » Closed (outdated)

Issue queue is now mantained at Github.

daggerhart’s picture

Issue tags: +Seattle2019